mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 21:55:10 -05:00
Define framebuffer for 16-bit displays
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7854 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b2db4acc7e
commit
fca0113f72
1 changed files with 5 additions and 0 deletions
|
|
@ -52,8 +52,13 @@ extern void screen_resized(int width, int height);
|
||||||
extern bool lcd_display_redraw;
|
extern bool lcd_display_redraw;
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
#if LCD_DEPTH==16
|
||||||
|
extern unsigned char lcd_framebuffer[LCD_HEIGHT][LCD_WIDTH*2];
|
||||||
|
unsigned char lcd_framebuffer_copy[LCD_HEIGHT][LCD_WIDTH*2];
|
||||||
|
#else
|
||||||
extern unsigned char lcd_framebuffer[LCD_HEIGHT/YBLOCK][LCD_WIDTH];
|
extern unsigned char lcd_framebuffer[LCD_HEIGHT/YBLOCK][LCD_WIDTH];
|
||||||
unsigned char lcd_framebuffer_copy[LCD_HEIGHT/YBLOCK][LCD_WIDTH];
|
unsigned char lcd_framebuffer_copy[LCD_HEIGHT/YBLOCK][LCD_WIDTH];
|
||||||
|
#endif
|
||||||
|
|
||||||
void lcd_update (void)
|
void lcd_update (void)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue