]> git.mxchange.org Git - flightgear.git/commitdiff
Disable panel-extent drawing in hot-spots mode.
authorJames Turner <zakalawe@mac.com>
Mon, 2 Jul 2012 10:44:34 +0000 (11:44 +0100)
committerJames Turner <zakalawe@mac.com>
Mon, 2 Jul 2012 10:44:34 +0000 (11:44 +0100)
To keep the tutorial looking nice, switch off the panel extent outlines for the 2.8 release. Longer-term I should remove the code, or add a separate property if this feature is actually useful.

src/Cockpit/panel.cxx

index 480360669b7d30fd638fa75d0937d35fb5ff749a..3fbc1994b4a63c9b82d829c1ebbffc6bcff83147 100644 (file)
@@ -422,6 +422,9 @@ FGPanel::draw(osg::State& state)
     for ( unsigned int i = 0; i < _instruments.size(); i++ )
       _instruments[i]->drawHotspots(state);
 
+  // disable drawing of panel extents for the 2.8 release, since it
+  // confused use of hot-spot drawing in tutorials.
+#ifdef DRAW_PANEL_EXTENTS
     glColor3f(0, 1, 1);
 
     int x0, y0, x1, y1;
@@ -433,7 +436,7 @@ FGPanel::draw(osg::State& state)
     glVertex2f(x1, y1);
     glVertex2f(x0, y1);
     glEnd();
-
+#endif
     
     glPopAttrib();