1
0
Fork 0
forked from len0rd/rockbox

Fix bugs in lcd drivers after b37e6bc

Change-Id: I9dc262b8453abab62e792beebe4f96415e58b380
This commit is contained in:
Andrew Ryabinin 2012-02-29 11:43:51 +04:00
parent e958aeeb76
commit fbb8c31e63
3 changed files with 3 additions and 3 deletions

View file

@ -162,7 +162,7 @@ void lcd_update_rect(int x, int y, int width, int height)
for (px=x; px<pxmax; px++) for (px=x; px<pxmax; px++)
for (py=y; py<pymax; py++) for (py=y; py<pymax; py++)
lcd_data(FBADDR(px, py)); lcd_data(*FBADDR(px, py));
} }
/* Blit a YUV bitmap directly to the LCD */ /* Blit a YUV bitmap directly to the LCD */

View file

@ -191,7 +191,7 @@ void lcd_update_rect(int x, int y, int width, int height)
for (py=y; py<pymax; py++) for (py=y; py<pymax; py++)
{ {
for (px=x; px<pxmax; px++) for (px=x; px<pxmax; px++)
LCD_DATA = lcd_pixel_transform(FBADDR(px,py)); LCD_DATA = lcd_pixel_transform(*FBADDR(px,py));
} }
} }

View file

@ -211,7 +211,7 @@ void lcd_update_rect(int sx, int sy, int width, int height)
fb_data c; fb_data c;
unsigned long color; unsigned long color;
c = FBADDR(x,y); c = *FBADDR(x,y);
color = color =
((c & 0x1f) << 1) | ((c & 0x7e0) << 1) | ((c & 0xf800) << ((c & 0x1f) << 1) | ((c & 0x7e0) << 1) | ((c & 0xf800) <<
2); 2);