]> git.mxchange.org Git - flightgear.git/commitdiff
draw dive lines always from the center, so that the stipple pattern is
authormfranz <mfranz>
Mon, 31 Jul 2006 18:09:13 +0000 (18:09 +0000)
committermfranz <mfranz>
Mon, 31 Jul 2006 18:09:13 +0000 (18:09 +0000)
symmetrical

src/Instrumentation/HUD/HUD_ladder.cxx

index de80203ee6a402c77d61119b3bf35afadfb294db..636522b847187fb8be7bb069323322045c7ca9ce 100644 (file)
@@ -561,12 +561,13 @@ void HUD::Ladder::draw(void)
                         draw_line(x_ini2, y + 5.0, x_ini2, y);
 
                         // draw pitch / dive bars
-                        draw_stipple_line(x_ini, y_end, x_end, y);
+                        draw_stipple_line(x_end, y, x_ini, y_end);
                         draw_stipple_line(x_ini2, y, x_end2, y_end);
 
                         float yoffs = 1.0 + (y - y_end) / 4.0;  // too hackish?
-                        draw_text(x_ini + 2.0, y_end + yoffs, buf, HUDText::BOTTOM|HUDText::HCENTER);
-                        draw_text(x_end2 - 2.0, y_end + yoffs, buf, HUDText::BOTTOM|HUDText::HCENTER);
+                        draw_text(x_ini + 3.0, y_end + yoffs, buf, HUDText::BOTTOM|HUDText::HCENTER);
+                        // right number shifted in a little more, because of the minus
+                        draw_text(x_end2 - 4.0, y_end + yoffs, buf, HUDText::BOTTOM|HUDText::HCENTER);
 
                         if (i == -90 && _nadir)
                             draw_nadir(0.0, y);