File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,29 @@ void CSiTRadar::OnRefresh(HDC hdc, int phase)
116116 DeleteObject (targetPen);
117117 }
118118
119+ // if primary target draw the symbol in magenta
120+
121+ if (radarTarget.GetPosition ().GetRadarFlags () == 1 ) {
122+ COLORREF targetPenColor;
123+ targetPenColor = RGB (197 , 38 , 212 ); // magenta colour
124+ HPEN targetPen;
125+ targetPen = CreatePen (PS_SOLID, 1 , targetPenColor);
126+ dc.SelectObject (targetPen);
127+ dc.SelectStockObject (NULL_BRUSH);
128+
129+ // draw the shape
130+ dc.MoveTo (p.x , p.y + 4 );
131+ dc.LineTo (p.x , p.y );
132+ dc.LineTo (p.x - 4 , p.y - 4 );
133+ dc.MoveTo (p.x , p.y );
134+ dc.LineTo (p.x + 4 , p.y - 4 );
135+
136+ // cleanup
137+ DeleteObject (targetPen);
138+
139+ }
140+
141+
119142 // if VFR
120143 if (strcmp (radarTarget.GetCorrelatedFlightPlan ().GetFlightPlanData ().GetPlanType (), " V" ) == 0
121144 && radarTarget.GetPosition ().GetTransponderC () == TRUE
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ class CSiTRadar :
9393 bool halotool = FALSE ;
9494 bool mousehalo = FALSE ;
9595 bool altFilterOpts = FALSE ;
96- bool altFilterOn = FALSE ;
96+ bool altFilterOn = TRUE ;
9797
9898 bool pressed = FALSE ;
9999 int haloidx = 1 ; // default halo radius = 3, corresponds to index of the halooptions
You can’t perform that action at this time.
0 commit comments