[Taranis] Infinite loop when drawing horizontal lines with a negative width

This commit is contained in:
Bertrand Songis
2016-03-05 00:22:18 +01:00
parent 55f71f053b
commit 7cf66c56c2
+1
View File
@@ -449,6 +449,7 @@ void lcdDrawNumber(coord_t x, coord_t y, int32_t val, LcdFlags flags, uint8_t le
void lcdDrawSolidHorizontalLine(coord_t x, coord_t y, coord_t w, LcdFlags att)
{
if (w < 0) { x += w; w = -w; }
lcdDrawHorizontalLine(x, y, w, 0xff, att);
}