summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/sony-nwz
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/sony-nwz')
-rw-r--r--firmware/target/arm/imx233/sony-nwz/lcd-nwze360.c3
-rw-r--r--firmware/target/arm/imx233/sony-nwz/lcd-nwze370.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/sony-nwz/lcd-nwze360.c b/firmware/target/arm/imx233/sony-nwz/lcd-nwze360.c
index cfcf85bfc0..8f49bfa3eb 100644
--- a/firmware/target/arm/imx233/sony-nwz/lcd-nwze360.c
+++ b/firmware/target/arm/imx233/sony-nwz/lcd-nwze360.c
@@ -228,8 +228,9 @@ void lcd_update_rect(int x, int y, int w, int h)
228 } 228 }
229 else 229 else
230 { 230 {
231 void* (*fbaddr)(int x, int y) = FB_CURRENTVP_BUFFER->get_address_fn;
231 for(int i = 0; i < h; i++) 232 for(int i = 0; i < h; i++)
232 memcpy((fb_data *)FRAME + i * w, FBADDR(x,y + i), w * sizeof(fb_data)); 233 memcpy((fb_data *)FRAME + i * w, fbaddr(x,y + i), w * sizeof(fb_data));
233 } 234 }
234 /* WARNING The LCDIF has a limitation on the vertical count ! In 16-bit packed mode 235 /* WARNING The LCDIF has a limitation on the vertical count ! In 16-bit packed mode
235 * (which we used, ie 16-bit per pixel, 2 pixels per 32-bit words), the v_count 236 * (which we used, ie 16-bit per pixel, 2 pixels per 32-bit words), the v_count
diff --git a/firmware/target/arm/imx233/sony-nwz/lcd-nwze370.c b/firmware/target/arm/imx233/sony-nwz/lcd-nwze370.c
index 999f4ee525..862522da15 100644
--- a/firmware/target/arm/imx233/sony-nwz/lcd-nwze370.c
+++ b/firmware/target/arm/imx233/sony-nwz/lcd-nwze370.c
@@ -189,8 +189,9 @@ void lcd_update_rect(int x, int y, int w, int h)
189 } 189 }
190 else 190 else
191 { 191 {
192 void* (*fbaddr)(int x, int y) = FB_CURRENTVP_BUFFER->get_address_fn;
192 for(int i = 0; i < h; i++) 193 for(int i = 0; i < h; i++)
193 memcpy((fb_data *)FRAME + i * w, FBADDR(x,y + i), w * sizeof(fb_data)); 194 memcpy((fb_data *)FRAME + i * w, fbaddr(x,y + i), w * sizeof(fb_data));
194 } 195 }
195 /* WARNING The LCDIF has a limitation on the vertical count ! In 16-bit packed mode 196 /* WARNING The LCDIF has a limitation on the vertical count ! In 16-bit packed mode
196 * (which we used, ie 16-bit per pixel, 2 pixels per 32-bit words), the v_count 197 * (which we used, ie 16-bit per pixel, 2 pixels per 32-bit words), the v_count