Sansa clip zip: workaround for wisechip display - always copy an entire horizontal strip in lcd_update_rect

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31029 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2011-11-19 17:55:17 +00:00
parent a71e87f132
commit bf51af7f7a

View file

@ -400,10 +400,10 @@ void lcd_update_rect(int x, int y, int width, int height)
return;
}
/* align horizontal position to even for wisechip display */
/* update entire horizontal strip for display type 0 (wisechip) */
if (lcd_type == 0) {
x = x & ~1;
x_end = (x_end + 1) & ~1;
x = 0;
x_end = 96;
}
/* correct rectangle (if necessary) */