From: mfranz Date: Mon, 31 Jul 2006 18:09:13 +0000 (+0000) Subject: draw dive lines always from the center, so that the stipple pattern is X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f3dd7c363cbb333b6ab99b44f6a237cb7852d420;p=flightgear.git draw dive lines always from the center, so that the stipple pattern is symmetrical --- diff --git a/src/Instrumentation/HUD/HUD_ladder.cxx b/src/Instrumentation/HUD/HUD_ladder.cxx index de80203ee..636522b84 100644 --- a/src/Instrumentation/HUD/HUD_ladder.cxx +++ b/src/Instrumentation/HUD/HUD_ladder.cxx @@ -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);