<option>top</option> draws tbi on top (vertically mirrored)
This commit is contained in:
parent
7c3711bcdf
commit
08d1b7748f
2 changed files with 11 additions and 0 deletions
|
@ -530,6 +530,7 @@ public:
|
||||||
private:
|
private:
|
||||||
void draw_scale();
|
void draw_scale();
|
||||||
void draw_tee();
|
void draw_tee();
|
||||||
|
void draw_line(float, float, float, float);
|
||||||
void draw_tick(float angle, float r1, float r2, int side);
|
void draw_tick(float angle, float r1, float r2, int side);
|
||||||
|
|
||||||
Input _bank;
|
Input _bank;
|
||||||
|
|
|
@ -207,3 +207,13 @@ void HUD::TurnBankIndicator::draw_tick(float angle, float r1, float r2, int side
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void HUD::TurnBankIndicator::draw_line(float x1, float y1, float x2, float y2)
|
||||||
|
{
|
||||||
|
if (option_top()) {
|
||||||
|
float y = 2.0 * _center_y; // mirror vertically
|
||||||
|
Item::draw_line(x1, y - y1, x2, y - y2);
|
||||||
|
} else
|
||||||
|
Item::draw_line(x1, y1, x2, y2);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue