Negative curves badly displayed
This commit is contained in:
+4
-2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user