summaryrefslogtreecommitdiff
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
parenta71e87f1328e3b40556f6b26a3966b79d86c898c (diff)
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
-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)
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) */