summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-11-19 17:55:17 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-11-19 17:55:17 +0000
commitbf51af7f7a81fd2c51845cb49649ff462cb84238 (patch)
treef21b5276371e418639929d5aca065a13aa3d04b3 /firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
parenta71e87f1328e3b40556f6b26a3966b79d86c898c (diff)
downloadrockbox-bf51af7f7a81fd2c51845cb49649ff462cb84238.tar.gz
rockbox-bf51af7f7a81fd2c51845cb49649ff462cb84238.zip
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
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c')
-rw-r--r--firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
index 8e36ff59d1..d071844860 100644
--- a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
+++ b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
@@ -400,10 +400,10 @@ void lcd_update_rect(int x, int y, int width, int height)
400 return; 400 return;
401 } 401 }
402 402
403 /* align horizontal position to even for wisechip display */ 403 /* update entire horizontal strip for display type 0 (wisechip) */
404 if (lcd_type == 0) { 404 if (lcd_type == 0) {
405 x = x & ~1; 405 x = 0;
406 x_end = (x_end + 1) & ~1; 406 x_end = 96;
407 } 407 }
408 408
409 /* correct rectangle (if necessary) */ 409 /* correct rectangle (if necessary) */