forked from len0rd/rockbox
lcd drivers: Convert lcd_[remote_]framebuffer to a pointer
Change all lcd drivers to using a pointer to the static framebuffer instead of directly accessing the static array. This will let us later do fun things like dynamic framebuffer sizes (RaaA) or ability to use different buffers for different layers (dynamic skin backdrops!) Change-Id: I0a4d58a9d7b55e6c932131b929e5d4c9f9414b06
This commit is contained in:
parent
15c69b8baf
commit
b37e6bc8c1
65 changed files with 193 additions and 181 deletions
|
@ -66,7 +66,7 @@ void lcd_update(void)
|
|||
return;
|
||||
|
||||
/* Copy the Rockbox framebuffer to the second framebuffer */
|
||||
lcd_copy_buffer_rect(LCD_FRAMEBUF_ADDR(0, 0), &lcd_framebuffer[0][0],
|
||||
lcd_copy_buffer_rect(LCD_FRAMEBUF_ADDR(0, 0), FBADDR(0,0),
|
||||
LCD_WIDTH*LCD_HEIGHT, 1);
|
||||
}
|
||||
#endif /* LCD_OPTIMIZED_UPDATE */
|
||||
|
@ -95,7 +95,7 @@ void lcd_update_rect(int x, int y, int width, int height)
|
|||
return; /* nothing left to do */
|
||||
|
||||
dst = LCD_FRAMEBUF_ADDR(x, y);
|
||||
src = &lcd_framebuffer[y][x];
|
||||
src = FBADDR(x,y);
|
||||
|
||||
/* Copy part of the Rockbox framebuffer to the second framebuffer */
|
||||
if (width < LCD_WIDTH)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue