From 8f06ef1645788526ad540838f497874b47d185ed Mon Sep 17 00:00:00 2001 From: bsongis Date: Tue, 8 May 2012 13:29:43 +0000 Subject: [PATCH] One TODO removed with a ten bytes flash saving --- src/lcd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lcd.cpp b/src/lcd.cpp index 926b74789..4b0bfa1b7 100644 --- a/src/lcd.cpp +++ b/src/lcd.cpp @@ -393,7 +393,7 @@ void lcd_vlineStip(uint8_t x, int8_t y, int8_t h, uint8_t pat) p += DISPLAY_W; h -= 8; } - h = (h+8) % 8; // TODO optim + if (h < 0) h += 8; if (h) { p -= DISPLAY_W; assert(p >= displayBuf && p < DISPLAY_END);