diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config.h | 4 | ||||
-rw-r--r-- | firmware/export/lcd.h | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 18dca402fb..13d272f7b7 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -206,6 +206,10 @@ | |||
206 | #define RGB565 565 | 206 | #define RGB565 565 |
207 | #define RGB565SWAPPED 3553 | 207 | #define RGB565SWAPPED 3553 |
208 | 208 | ||
209 | /* LCD_STRIDEFORMAT */ | ||
210 | #define VERTICAL_STRIDE 1 | ||
211 | #define HORIZONTAL_STRIDE 2 | ||
212 | |||
209 | /* CONFIG_ORIENTATION */ | 213 | /* CONFIG_ORIENTATION */ |
210 | #define SCREEN_PORTRAIT 0 | 214 | #define SCREEN_PORTRAIT 0 |
211 | #define SCREEN_LANDSCAPE 1 | 215 | #define SCREEN_LANDSCAPE 1 |
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 5846fae9c1..3d391d6685 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h | |||
@@ -306,6 +306,13 @@ static inline unsigned lcd_color_to_native(unsigned color) | |||
306 | 306 | ||
307 | #endif /* HAVE_LCD_COLOR */ | 307 | #endif /* HAVE_LCD_COLOR */ |
308 | 308 | ||
309 | /* Frame buffer stride */ | ||
310 | #if defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE | ||
311 | #define STRIDE(w, h) (h) | ||
312 | #else | ||
313 | #define STRIDE(w, h) (w) | ||
314 | #endif | ||
315 | |||
309 | /* Frame buffer dimensions */ | 316 | /* Frame buffer dimensions */ |
310 | #if LCD_DEPTH == 1 | 317 | #if LCD_DEPTH == 1 |
311 | #if LCD_PIXELFORMAT == HORIZONTAL_PACKING | 318 | #if LCD_PIXELFORMAT == HORIZONTAL_PACKING |