1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 00:35:18 +03:00

Negative curves badly displayed

This commit is contained in:
bsongis 2014-03-26 09:34:23 +01:00
parent 09fc2af254
commit f9b9df3a83

View file

@ -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)
{
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) {
lcd_putcAtt(x-1*FW, y, '!', att);
lcd_putcAtt(x-3, y, '!', att);
idx = -idx;
}