1
0
Fork 0
forked from len0rd/rockbox

Increase the number of pixels written to the Photo/Color LCD in one go to 0x10000 (was 64000)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10730 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2006-08-24 10:29:37 +00:00
parent 92fe88a3a7
commit 06fc18fca8

View file

@ -512,8 +512,8 @@ void lcd_yuv_blit(unsigned char * const src[3],
h = height; h = height;
/* calculate how much we can do in one go */ /* calculate how much we can do in one go */
if (pixels_to_write > 64000) { if (pixels_to_write > 0x10000) {
h = (64000/2) / width; h = (0x10000/2) / width;
pixels_to_write = (width * h) * 2; pixels_to_write = (width * h) * 2;
} }
@ -709,8 +709,8 @@ void lcd_update_rect(int x, int y, int width, int height)
h = height; h = height;
/* calculate how much we can do in one go */ /* calculate how much we can do in one go */
if (pixels_to_write > 64000) { if (pixels_to_write > 0x10000) {
h = (64000/2) / width; h = (0x10000/2) / width;
pixels_to_write = (width * h) * 2; pixels_to_write = (width * h) * 2;
} }