Skip to content

Commit

Permalink
Force CJS frequency display label to always white
Browse files Browse the repository at this point in the history
  • Loading branch information
EightSmart committed Jul 13, 2024
1 parent 3f0b849 commit da7931a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AT3/AT3RadarTargetDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,20 +154,23 @@ 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();
}
} 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());
}
} else {
if (CJSLabelShowFreq[fp.GetCallsign()]) {
CJSLabelText = GetControllerFreqFromId(fp.GetTrackingControllerId());
dc.SetTextColor(DEFAULT_ASSUMED.ToCOLORREF());
} else {
CJSLabelText = fp.GetTrackingControllerId();
}
Expand Down

0 comments on commit da7931a

Please sign in to comment.