diff options
author | Andrew Ryabinin <ryabinin.a.a@gmail.com> | 2012-02-29 11:43:51 +0400 |
---|---|---|
committer | Andrew Ryabinin <ryabinin.a.a@gmail.com> | 2012-02-29 11:43:51 +0400 |
commit | fbb8c31e63f83dbba62ea32e6760c67a0d1fae2c (patch) | |
tree | b234d2470cb5ca0c692df4ff4c885a85863a05bf /firmware/target/arm | |
parent | e958aeeb765f26411544da6312bad282a5f0c867 (diff) | |
download | rockbox-fbb8c31e63f83dbba62ea32e6760c67a0d1fae2c.tar.gz rockbox-fbb8c31e63f83dbba62ea32e6760c67a0d1fae2c.zip |
Fix bugs in lcd drivers after b37e6bc
Change-Id: I9dc262b8453abab62e792beebe4f96415e58b380
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/rk27xx/lcd-hifiman.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/rk27xx/rk27generic/lcd-rk27generic.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/tcc77x/iaudio7/lcd-iaudio7.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/rk27xx/lcd-hifiman.c b/firmware/target/arm/rk27xx/lcd-hifiman.c index 21ca321d1f..dba6accd1d 100644 --- a/firmware/target/arm/rk27xx/lcd-hifiman.c +++ b/firmware/target/arm/rk27xx/lcd-hifiman.c | |||
@@ -162,7 +162,7 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
162 | 162 | ||
163 | for (px=x; px<pxmax; px++) | 163 | for (px=x; px<pxmax; px++) |
164 | for (py=y; py<pymax; py++) | 164 | for (py=y; py<pymax; py++) |
165 | lcd_data(FBADDR(px, py)); | 165 | lcd_data(*FBADDR(px, py)); |
166 | } | 166 | } |
167 | 167 | ||
168 | /* Blit a YUV bitmap directly to the LCD */ | 168 | /* Blit a YUV bitmap directly to the LCD */ |
diff --git a/firmware/target/arm/rk27xx/rk27generic/lcd-rk27generic.c b/firmware/target/arm/rk27xx/rk27generic/lcd-rk27generic.c index 6b989a6dd7..e15262398b 100644 --- a/firmware/target/arm/rk27xx/rk27generic/lcd-rk27generic.c +++ b/firmware/target/arm/rk27xx/rk27generic/lcd-rk27generic.c | |||
@@ -191,7 +191,7 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
191 | for (py=y; py<pymax; py++) | 191 | for (py=y; py<pymax; py++) |
192 | { | 192 | { |
193 | for (px=x; px<pxmax; px++) | 193 | for (px=x; px<pxmax; px++) |
194 | LCD_DATA = lcd_pixel_transform(FBADDR(px,py)); | 194 | LCD_DATA = lcd_pixel_transform(*FBADDR(px,py)); |
195 | } | 195 | } |
196 | } | 196 | } |
197 | 197 | ||
diff --git a/firmware/target/arm/tcc77x/iaudio7/lcd-iaudio7.c b/firmware/target/arm/tcc77x/iaudio7/lcd-iaudio7.c index 8b9a9bda83..e681e1eff7 100644 --- a/firmware/target/arm/tcc77x/iaudio7/lcd-iaudio7.c +++ b/firmware/target/arm/tcc77x/iaudio7/lcd-iaudio7.c | |||
@@ -211,7 +211,7 @@ void lcd_update_rect(int sx, int sy, int width, int height) | |||
211 | fb_data c; | 211 | fb_data c; |
212 | unsigned long color; | 212 | unsigned long color; |
213 | 213 | ||
214 | c = FBADDR(x,y); | 214 | c = *FBADDR(x,y); |
215 | color = | 215 | color = |
216 | ((c & 0x1f) << 1) | ((c & 0x7e0) << 1) | ((c & 0xf800) << | 216 | ((c & 0x1f) << 1) | ((c & 0x7e0) << 1) | ((c & 0xf800) << |
217 | 2); | 217 | 2); |