diff options
| author | Dave Chapman <dave@dchapman.com> | 2006-02-16 00:52:47 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2006-02-16 00:52:47 +0000 |
| commit | 333a22e73c5688ffba048b4e9979644a8436a9e9 (patch) | |
| tree | 1506e6b67a5a157e2e1e3b6270a438eb1f186123 | |
| parent | e824805f4217a4a6b702a5845c6e25422984e9b5 (diff) | |
| download | rockbox-333a22e73c5688ffba048b4e9979644a8436a9e9.zip rockbox-333a22e73c5688ffba048b4e9979644a8436a9e9.tar.gz rockbox-333a22e73c5688ffba048b4e9979644a8436a9e9.tar.bz2 rockbox-333a22e73c5688ffba048b4e9979644a8436a9e9.tar.xz | |
iPod 5G: Another LCD optimisation, now at 52fps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8698 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/drivers/lcd-ipodvideo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/lcd-ipodvideo.c b/firmware/drivers/lcd-ipodvideo.c index 45ea7bb..d73d9c3 100644 --- a/firmware/drivers/lcd-ipodvideo.c +++ b/firmware/drivers/lcd-ipodvideo.c @@ -179,13 +179,13 @@ void lcd_update_rect(int x, int y, int width, int height) outw((0xE0020 & 0xffff), 0x30010000); outw((0xE0020 >> 16), 0x30010000); + /* wait for it to be write ready */ + while ((inw(0x30030000) & 0x2) == 0); + 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 (c = 0; c < width; c+=2) { + /* write out two pixels */ outw(*(src++), 0x30000000); outw(*(src++), 0x30000000); } |