From: James Turner Date: Mon, 2 Jul 2012 10:44:34 +0000 (+0100) Subject: Disable panel-extent drawing in hot-spots mode. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2a276ae5d1db140a36f48d66b99fb49adca17e3a;p=flightgear.git Disable panel-extent drawing in hot-spots mode. 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. --- diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index 480360669..3fbc1994b 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -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();