From 0fc113cd2d7c4971fe6293393b26a62ba02ff3a2 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Thu, 2 Dec 2021 19:07:03 +0100 Subject: [PATCH] use the standard color and a * to indicate if a plan is fixed or not --- src/PlugIn.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/PlugIn.cpp b/src/PlugIn.cpp index 6b7ecd5..397cbf0 100644 --- a/src/PlugIn.cpp +++ b/src/PlugIn.cpp @@ -458,8 +458,7 @@ void PlugIn::OnGetTagItem(EuroScopePlugIn::CFlightPlan flightPlan, EuroScopePlug /* inbound expected, but not available */ if (this->m_inbounds.cend() == it && (true == forced || true == planExpected)) { - std::strcpy(itemString, "??:??"); - *colorCode = EuroScopePlugIn::TAG_COLOR_INFORMATION; + std::strcpy(itemString, "* ??:??"); } /* inbound is available */ else if (this->m_inbounds.cend() != it) { @@ -468,14 +467,9 @@ void PlugIn::OnGetTagItem(EuroScopePlugIn::CFlightPlan flightPlan, EuroScopePlug const auto seconds = std::abs(ttl) % 60; std::stringstream stream; - stream << std::setw(2) << std::setfill('0') << minutes << ":" + stream << (true == it->second.fixedPlan() ? "" : "* ") << std::setw(2) << std::setfill('0') << minutes << ":" << std::setw(2) << std::setfill('0') << seconds; std::strcpy(itemString, stream.str().c_str()); - - if (false == it->second.fixedPlan()) - *colorCode = EuroScopePlugIn::TAG_COLOR_INFORMATION; - else - *colorCode = EuroScopePlugIn::TAG_COLOR_DEFAULT; } else { gsl::at(tagString, 0) = '\0';