diff options
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r-- | firmware/export/lcd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index ea5851e736..e435d174f2 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h | |||
@@ -75,13 +75,17 @@ struct viewport { | |||
75 | #if (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED) \ | 75 | #if (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED) \ |
76 | || (LCD_PIXELFORMAT == HORIZONTAL_INTERLEAVED) | 76 | || (LCD_PIXELFORMAT == HORIZONTAL_INTERLEAVED) |
77 | typedef unsigned short fb_data; | 77 | typedef unsigned short fb_data; |
78 | #define FB_DATA_SZ 2 | ||
78 | #else | 79 | #else |
79 | typedef unsigned char fb_data; | 80 | typedef unsigned char fb_data; |
81 | #define FB_DATA_SZ 1 | ||
80 | #endif | 82 | #endif |
81 | #elif LCD_DEPTH <= 16 | 83 | #elif LCD_DEPTH <= 16 |
82 | typedef unsigned short fb_data; | 84 | typedef unsigned short fb_data; |
85 | #define FB_DATA_SZ 2 | ||
83 | #else /* LCD_DEPTH > 16 */ | 86 | #else /* LCD_DEPTH > 16 */ |
84 | typedef unsigned long fb_data; | 87 | typedef unsigned long fb_data; |
88 | #define FB_DATA_SZ 4 | ||
85 | #endif /* LCD_DEPTH */ | 89 | #endif /* LCD_DEPTH */ |
86 | 90 | ||
87 | #else /* LCD_CHARCELLS */ | 91 | #else /* LCD_CHARCELLS */ |