- puColour currentColor;
- puSetColor(currentColor, 1.0, 1.0, 0.0, 0.5);
+ puColour col;
+ puFont* f = &legendFont;
+ bool drawBox = false;
+
+ if (wp->flag(WPT_MISS)) {
+ drawBox = true;
+ puSetColor(col, 1.0, 0.0, 0.0, 0.3); // red
+ } else if (wp->flag(WPT_ARRIVAL)) {
+ drawBox = true;
+ puSetColor(col, 0.0, 0.0, 0.0, 0.3);
+ } else if (wp->flag(WPT_DEPARTURE)) {
+ drawBox = true;
+ puSetColor(col, 0.0, 0.0, 0.0, 0.3);
+ }