From da7931a86dad6a875bdc1d18b6a0654742abe796 Mon Sep 17 00:00:00 2001 From: Justin Wai Date: Sun, 14 Jul 2024 00:17:42 +0800 Subject: [PATCH] Force CJS frequency display label to always white --- AT3/AT3RadarTargetDisplay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AT3/AT3RadarTargetDisplay.cpp b/AT3/AT3RadarTargetDisplay.cpp index d8482737..67cefe8a 100644 --- a/AT3/AT3RadarTargetDisplay.cpp +++ b/AT3/AT3RadarTargetDisplay.cpp @@ -154,6 +154,7 @@ void AT3RadarTargetDisplay::OnRefresh(HDC hDC, int Phase, HKCPDisplay* Display) if (fp.GetState() == FLIGHT_PLAN_STATE_TRANSFER_FROM_ME_INITIATED) { if (CJSLabelShowFreq[fp.GetCallsign()]) { CJSLabelText = GetControllerFreqFromId(fp.GetHandoffTargetControllerId()); + dc.SetTextColor(DEFAULT_ASSUMED.ToCOLORREF()); } else { CJSLabelText = fp.GetHandoffTargetControllerId(); @@ -161,6 +162,7 @@ void AT3RadarTargetDisplay::OnRefresh(HDC hDC, int Phase, HKCPDisplay* Display) } else if (fp.GetState() == FLIGHT_PLAN_STATE_ASSUMED) { if (CJSLabelShowFreq[fp.GetCallsign()]) { CJSLabelText = GetControllerFreqFromId(GetControllerIdFromCallsign(fp.GetCoordinatedNextController())); + dc.SetTextColor(DEFAULT_ASSUMED.ToCOLORREF()); } else { CJSLabelText = GetControllerIdFromCallsign(fp.GetCoordinatedNextController()); @@ -168,6 +170,7 @@ void AT3RadarTargetDisplay::OnRefresh(HDC hDC, int Phase, HKCPDisplay* Display) } else { if (CJSLabelShowFreq[fp.GetCallsign()]) { CJSLabelText = GetControllerFreqFromId(fp.GetTrackingControllerId()); + dc.SetTextColor(DEFAULT_ASSUMED.ToCOLORREF()); } else { CJSLabelText = fp.GetTrackingControllerId(); }