mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
'Fix RED e200 Framebuffer_viewport_rewrite
Free malloc in checkwps too Change-Id: I2b8fcbc94beb0644b643d3b7a9cb53bc26fc8a51
This commit is contained in:
parent
04e7bacc4c
commit
299c237075
2 changed files with 23 additions and 15 deletions
|
|
@ -448,7 +448,7 @@ void lcd_update(void)
|
|||
|
||||
lcd_write_cmd(R_WRITE_DATA_2_GRAM);
|
||||
|
||||
dbop_write_data((fb_data*)lcd_framebuffer, LCD_WIDTH*LCD_HEIGHT);
|
||||
dbop_write_data((fb_data*)FBADDR(0,0), LCD_WIDTH*LCD_HEIGHT);
|
||||
}
|
||||
|
||||
/* Update a fraction of the display. */
|
||||
|
|
@ -460,7 +460,7 @@ void lcd_update_rect(int x, int y, int width, int height)
|
|||
return;
|
||||
|
||||
/* nothing to draw? */
|
||||
if ((width <= 0) || (height <= 0) || (x >= LCD_WIDTH) ||
|
||||
if ((width <= 0) || (height <= 0) || (x >= LCD_WIDTH) ||
|
||||
(y >= LCD_HEIGHT) || (x + width <= 0) || (y + height <= 0))
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue