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:
Thomas Martitz 2010-01-26 21:31:53 +00:00
parent e8ae70a382
commit fbc8f0c469

View file

@ -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);
/* 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_write_cmd(R_WRITE_DATA_2_GRAM);