iPod 5G: Another LCD optimisation, now at 52fps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8698 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e824805f42
commit
333a22e73c
1 changed files with 5 additions and 5 deletions
|
@ -179,13 +179,13 @@ void lcd_update_rect(int x, int y, int width, int height)
|
|||
outw((0xE0020 & 0xffff), 0x30010000);
|
||||
outw((0xE0020 >> 16), 0x30010000);
|
||||
|
||||
for (r = 0; r < height; r++) {
|
||||
/* for each column */
|
||||
for (c = 0; c < width; c += 2) {
|
||||
/* wait for it to be write ready */
|
||||
while ((inw(0x30030000) & 0x2) == 0);
|
||||
|
||||
/* write out the value low 16, high 16 */
|
||||
for (r = 0; r < height; r++) {
|
||||
/* for each column */
|
||||
for (c = 0; c < width; c+=2) {
|
||||
/* write out two pixels */
|
||||
outw(*(src++), 0x30000000);
|
||||
outw(*(src++), 0x30000000);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue