From: Christian Schmitt Date: Sun, 10 Mar 2013 17:18:45 +0000 (+0100) Subject: MapWidget: make partially use of the new colocated DME information. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f11201d3d93d70d610e32496e363dc7e851e86c5;p=flightgear.git MapWidget: make partially use of the new colocated DME information. Until a better way to draw proper symbols is implemented, this has to do. --- 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