From f11201d3d93d70d610e32496e363dc7e851e86c5 Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Sun, 10 Mar 2013 18:18:45 +0100 Subject: [PATCH] MapWidget: make partially use of the new colocated DME information. Until a better way to draw proper symbols is implemented, this has to do. --- src/GUI/MapWidget.cxx | 20 +++++++++++++++++--- src/GUI/MapWidget.hxx | 1 + 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/GUI/MapWidget.cxx b/src/GUI/MapWidget.cxx index 80158939f..b063bc79f 100644 --- a/src/GUI/MapWidget.cxx +++ b/src/GUI/MapWidget.cxx @@ -1061,7 +1061,11 @@ void MapWidget::drawVOR(bool tuned, FGNavRecord* vor) glColor3f(0.0, 0.0, 1.0); } - circleAt(pos, 6, 8); + circleAt(pos, 6, 9); + circleAt(pos, 8, 1); + + if (vor->hasDME()) + squareAt(pos, 9); if (validDataForKey(vor)) { setAnchorForKey(vor, pos); @@ -1683,15 +1687,25 @@ void MapWidget::circleAt(const SGVec2d& center, int nSides, double r) { glBegin(GL_LINE_LOOP); double advance = (SGD_PI * 2) / nSides; - glVertex2d(center.x(), center.y() + r); + glVertex2d(center.x() +r, center.y()); double t=advance; for (int i=1; i