mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Negative curves badly displayed
This commit is contained in:
parent
09fc2af254
commit
f9b9df3a83
1 changed files with 4 additions and 2 deletions
|
@ -1057,10 +1057,12 @@ void putsCurveRef(xcoord_t x, uint8_t y, CurveRef &curve, LcdFlags att)
|
||||||
|
|
||||||
void putsCurve(xcoord_t x, uint8_t y, int8_t idx, LcdFlags att)
|
void putsCurve(xcoord_t x, uint8_t y, int8_t idx, LcdFlags att)
|
||||||
{
|
{
|
||||||
if (idx == 0) return lcd_putsiAtt(x, y, STR_MMMINV, 0, att);
|
if (idx == 0) {
|
||||||
|
return lcd_putsiAtt(x, y, STR_MMMINV, 0, att);
|
||||||
|
}
|
||||||
|
|
||||||
if (idx < 0) {
|
if (idx < 0) {
|
||||||
lcd_putcAtt(x-1*FW, y, '!', att);
|
lcd_putcAtt(x-3, y, '!', att);
|
||||||
idx = -idx;
|
idx = -idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue