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 /firmware/drivers | |
parent | e824805f4217a4a6b702a5845c6e25422984e9b5 (diff) | |
download | rockbox-333a22e73c5688ffba048b4e9979644a8436a9e9.tar.gz rockbox-333a22e73c5688ffba048b4e9979644a8436a9e9.zip |
iPod 5G: Another LCD optimisation, now at 52fps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8698 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-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 45ea7bbce0..d73d9c3e42 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) | |||
179 | outw((0xE0020 & 0xffff), 0x30010000); | 179 | outw((0xE0020 & 0xffff), 0x30010000); |
180 | outw((0xE0020 >> 16), 0x30010000); | 180 | outw((0xE0020 >> 16), 0x30010000); |
181 | 181 | ||
182 | /* wait for it to be write ready */ | ||
183 | while ((inw(0x30030000) & 0x2) == 0); | ||
184 | |||
182 | for (r = 0; r < height; r++) { | 185 | for (r = 0; r < height; r++) { |
183 | /* for each column */ | 186 | /* for each column */ |
184 | for (c = 0; c < width; c += 2) { | 187 | for (c = 0; c < width; c+=2) { |
185 | /* wait for it to be write ready */ | 188 | /* write out two pixels */ |
186 | while ((inw(0x30030000) & 0x2) == 0); | ||
187 | |||
188 | /* write out the value low 16, high 16 */ | ||
189 | outw(*(src++), 0x30000000); | 189 | outw(*(src++), 0x30000000); |
190 | outw(*(src++), 0x30000000); | 190 | outw(*(src++), 0x30000000); |
191 | } | 191 | } |