Sim: Add support for vertical stride.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22612 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7f03af08fa
commit
3f2e28b0f5
1 changed files with 4 additions and 0 deletions
|
@ -104,10 +104,14 @@ static unsigned long get_lcd_pixel(int x, int y)
|
|||
#if LCD_PIXELFORMAT == RGB565SWAPPED
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue