summaryrefslogtreecommitdiff
path: root/firmware/export/lcd.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r--firmware/export/lcd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index c81d2de2b3..733efdded3 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -111,14 +111,14 @@ void lcd_remove_cursor(void);
111#define LCD_HEIGHT 64 /* Display height in pixels */ 111#define LCD_HEIGHT 64 /* Display height in pixels */
112#endif 112#endif
113 113
114#define DRAW_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] |= (1<<((y)&7)) 114#define DRAW_PIXEL(x,y) lcd_framebuffer[(y)/8][(x)] |= (1<<((y)&7))
115#define CLEAR_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] &= ~(1<<((y)&7)) 115#define CLEAR_PIXEL(x,y) lcd_framebuffer[(y)/8][(x)] &= ~(1<<((y)&7))
116#define INVERT_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] ^= (1<<((y)&7)) 116#define INVERT_PIXEL(x,y) lcd_framebuffer[(y)/8][(x)] ^= (1<<((y)&7))
117 117
118/* 118/*
119 * Memory copy of display bitmap 119 * Memory copy of display bitmap
120 */ 120 */
121extern unsigned char lcd_framebuffer[LCD_WIDTH][LCD_HEIGHT/8]; 121extern unsigned char lcd_framebuffer[LCD_HEIGHT/8][LCD_WIDTH];
122 122
123extern void lcd_setmargins(int xmargin, int ymargin); 123extern void lcd_setmargins(int xmargin, int ymargin);
124extern int lcd_getxmargin(void); 124extern int lcd_getxmargin(void);