mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Update on even pixel boundaries on the e200v2 for best performance (was forgotten in r24198).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24337 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e8ae70a382
commit
fbc8f0c469
1 changed files with 4 additions and 0 deletions
|
@ -481,6 +481,10 @@ void lcd_update_rect(int x, int y, int width, int height)
|
||||||
|
|
||||||
lcd_write_reg(R_ENTRY_MODE, r_entry_mode);
|
lcd_write_reg(R_ENTRY_MODE, r_entry_mode);
|
||||||
|
|
||||||
|
/* we need to make x and width even to enable 32bit transfers */
|
||||||
|
width = (width + (x & 1) + 1) & ~1;
|
||||||
|
x &= ~1;
|
||||||
|
|
||||||
lcd_window(x, y, x+width-1, y+height-1);
|
lcd_window(x, y, x+width-1, y+height-1);
|
||||||
lcd_write_cmd(R_WRITE_DATA_2_GRAM);
|
lcd_write_cmd(R_WRITE_DATA_2_GRAM);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue