summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-09-04 00:38:01 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-09-04 00:38:01 +0000
commit3f2e28b0f551fe30b443739b539f3df41969262d (patch)
tree919cdd0cb1ac904c19ff6e933329c79d2c6f1f68 /uisimulator
parent7f03af08fa16c448927f513774ea2978707ef9c3 (diff)
downloadrockbox-3f2e28b0f551fe30b443739b539f3df41969262d.tar.gz
rockbox-3f2e28b0f551fe30b443739b539f3df41969262d.tar.bz2
rockbox-3f2e28b0f551fe30b443739b539f3df41969262d.zip
Sim: Add support for vertical stride.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22612 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/lcd-bitmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/uisimulator/sdl/lcd-bitmap.c b/uisimulator/sdl/lcd-bitmap.c
index 378889c417..3c73b6fc5d 100644
--- a/uisimulator/sdl/lcd-bitmap.c
+++ b/uisimulator/sdl/lcd-bitmap.c
@@ -105,9 +105,13 @@ static unsigned long get_lcd_pixel(int x, int y)
unsigned bits = lcd_framebuffer[y][x];
return (bits >> 8) | (bits << 8);
#else
+#if defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE
+ return *(&lcd_framebuffer[0][0]+LCD_HEIGHT*x+y);
+#else
return lcd_framebuffer[y][x];
#endif
#endif
+#endif
}
void lcd_update(void)