mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix bugs in lcd drivers after b37e6bc
Change-Id: I9dc262b8453abab62e792beebe4f96415e58b380
This commit is contained in:
parent
e958aeeb76
commit
fbb8c31e63
3 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue