]> git.mxchange.org Git - flightgear.git/commitdiff
Clarify comments
authorDave Luff <daveluff@ntlworld.com>
Sun, 21 Nov 2010 09:59:49 +0000 (09:59 +0000)
committerDave Luff <daveluff@ntlworld.com>
Sun, 21 Nov 2010 09:59:49 +0000 (09:59 +0000)
src/Instrumentation/KLN89/kln89_page_nav.cxx

index 0081d70a9ba85f38d7ebe0f7b3a05f441d71502f..1a7fb9624cf484352ce67cc21fdae126d7057726 100644 (file)
@@ -251,15 +251,24 @@ void KLN89NavPage::Update(double dt) {
                        _kln89->DrawText("-:--", 2, 11, 0);
                }
        } else {        // if(3 == _subPage)
+               //
                // Switch the cursor off if scan-pull is out on this page.
+               //
                if(fgGetBool("/instrumentation/kln89/scan-pull")) { _kln89->_mode = KLN89_MODE_DISP; } 
-               // The moving map page the core KLN89 class draws this.
+               
+               //
+               // Draw the moving map if valid.
+               // We call the core KLN89 class to do this.
+               //
                if(_kln89->_mapOrientation == 2 && _kln89->_groundSpeed_kts < 2) {
                        // Don't draw it if in track up mode and groundspeed < 2kts, as per real-life unit.
                } else {
                        _kln89->DrawMap(!_suspendAVS);
                }
-               // Now draw any annotation over it.
+               
+               //
+               // Now that the map has been drawn, add the annotation (scale, etc).
+               //
                int scale = KLN89MapScales[_kln89->_mapScaleUnits][_kln89->_mapScaleIndex];
                string scle_str = GPSitoa(scale);
                if(crsr) {
@@ -325,7 +334,10 @@ void KLN89NavPage::Update(double dt) {
                                }               
                        }
                }
-               // And do part of the field 1 update, since NAV 4 is a special case for the last line.
+               
+               //
+               // Do part of the field 1 update, since NAV 4 is a special case for the last line.
+               //
                _kln89->DrawChar('>', 1, 0, 0);
                if(crsr && _uLinePos == 1) _kln89->Underline(1, 1, 0, 5);
                if(!(crsr && _uLinePos == 1 && _kln89->_blink)) {