diff options
Diffstat (limited to 'firmware/drivers/lcd.h')
-rw-r--r-- | firmware/drivers/lcd.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/lcd.h b/firmware/drivers/lcd.h index ed2fe7ee45..5b8c68cdc8 100644 --- a/firmware/drivers/lcd.h +++ b/firmware/drivers/lcd.h | |||
@@ -79,9 +79,9 @@ extern void lcd_double_height (bool on); | |||
79 | #define LCD_WIDTH 112 /* Display width in pixels */ | 79 | #define LCD_WIDTH 112 /* Display width in pixels */ |
80 | #define LCD_HEIGHT 64 /* Display height in pixels */ | 80 | #define LCD_HEIGHT 64 /* Display height in pixels */ |
81 | 81 | ||
82 | #define DRAW_PIXEL(x,y) lcd_framebuffer[x][y/8] |= (1<<(y&7)) | 82 | #define DRAW_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] |= (1<<((y)&7)) |
83 | #define CLEAR_PIXEL(x,y) lcd_framebuffer[x][y/8] &= ~(1<<(y&7)) | 83 | #define CLEAR_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] &= ~(1<<((y)&7)) |
84 | #define INVERT_PIXEL(x,y) lcd_framebuffer[x][y/8] ^= (1<<(y&7)) | 84 | #define INVERT_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] ^= (1<<((y)&7)) |
85 | 85 | ||
86 | /* | 86 | /* |
87 | * Memory copy of display bitmap | 87 | * Memory copy of display bitmap |