From 80badf9fc5ed07909664324a5bf9afae0e0b0dd9 Mon Sep 17 00:00:00 2001 From: Dave Luff Date: Sun, 21 Nov 2010 09:59:49 +0000 Subject: [PATCH] Clarify comments --- src/Instrumentation/KLN89/kln89_page_nav.cxx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/Instrumentation/KLN89/kln89_page_nav.cxx b/src/Instrumentation/KLN89/kln89_page_nav.cxx index 0081d70a9..1a7fb9624 100644 --- a/src/Instrumentation/KLN89/kln89_page_nav.cxx +++ b/src/Instrumentation/KLN89/kln89_page_nav.cxx @@ -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)) { -- 2.39.5