summaryrefslogtreecommitdiff
path: root/firmware/export/lcd.h
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-08-29 19:31:29 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-08-29 19:31:29 +0000
commit7bb7c5f0cc7bf5b5172aeb4d75ef886b19755863 (patch)
tree2ebcd796b8e4af00759bd87180b55542598a247b /firmware/export/lcd.h
parent47541e5f2f862a7a2dd314882dc9de068dc83102 (diff)
downloadrockbox-7bb7c5f0cc7bf5b5172aeb4d75ef886b19755863.tar.gz
rockbox-7bb7c5f0cc7bf5b5172aeb4d75ef886b19755863.zip
Add stride defines to support vertical strides
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22546 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r--firmware/export/lcd.h7
1 files changed, 7 insertions, 0 deletions
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