From 06fc18fca845264f1f64442c3738c936e3248f50 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Thu, 24 Aug 2006 10:29:37 +0000 Subject: [PATCH] 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 --- firmware/drivers/lcd-ipod.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/drivers/lcd-ipod.c b/firmware/drivers/lcd-ipod.c index ed2847d665..e65d500654 100644 --- a/firmware/drivers/lcd-ipod.c +++ b/firmware/drivers/lcd-ipod.c @@ -512,8 +512,8 @@ void lcd_yuv_blit(unsigned char * const src[3], h = height; /* calculate how much we can do in one go */ - if (pixels_to_write > 64000) { - h = (64000/2) / width; + if (pixels_to_write > 0x10000) { + h = (0x10000/2) / width; pixels_to_write = (width * h) * 2; } @@ -709,8 +709,8 @@ void lcd_update_rect(int x, int y, int width, int height) h = height; /* calculate how much we can do in one go */ - if (pixels_to_write > 64000) { - h = (64000/2) / width; + if (pixels_to_write > 0x10000) { + h = (0x10000/2) / width; pixels_to_write = (width * h) * 2; }