diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-06-29 01:39:50 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-29 01:39:50 +0000 |
commit | 576908d36a58d51ee880791418a32cef25b49aba (patch) | |
tree | da2e34886085ca15de28d1b7226064be2906232b /apps/plugins/logo.c | |
parent | 7e11acbce9b9a63c28ded055d02301175391e027 (diff) | |
download | rockbox-576908d36a58d51ee880791418a32cef25b49aba.tar.gz rockbox-576908d36a58d51ee880791418a32cef25b49aba.zip |
Third part of graphics api rework. Some small but effective optimisations. Ported remote lcd driver to new api. Preparations for including the low-level functions in the plugin api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6907 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/logo.c')
-rw-r--r-- | apps/plugins/logo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c index 7807982ebc..abe4e0bc3b 100644 --- a/apps/plugins/logo.c +++ b/apps/plugins/logo.c | |||
@@ -231,11 +231,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { | |||
231 | rb->lcd_clear_display(); | 231 | rb->lcd_clear_display(); |
232 | rb->lcd_bitmap(LOGO, x, y, LOGO_WIDTH, LOGO_HEIGHT); | 232 | rb->lcd_bitmap(LOGO, x, y, LOGO_WIDTH, LOGO_HEIGHT); |
233 | #ifdef REMOTE_LOGO | 233 | #ifdef REMOTE_LOGO |
234 | rb->remote_clear_display(); | 234 | rb->lcd_remote_clear_display(); |
235 | rb->remote_bitmap(REMOTE_LOGO, | 235 | rb->lcd_remote_bitmap(REMOTE_LOGO, |
236 | (x * (REMOTE_WIDTH - REMOTE_LOGO_WIDTH)) / (DISPLAY_WIDTH - LOGO_WIDTH), | 236 | (x * (REMOTE_WIDTH - REMOTE_LOGO_WIDTH)) / (DISPLAY_WIDTH - LOGO_WIDTH), |
237 | (y * (REMOTE_HEIGHT - REMOTE_LOGO_HEIGHT)) / (DISPLAY_HEIGHT - LOGO_HEIGHT), | 237 | (y * (REMOTE_HEIGHT - REMOTE_LOGO_HEIGHT)) / (DISPLAY_HEIGHT - LOGO_HEIGHT), |
238 | REMOTE_LOGO_WIDTH, REMOTE_LOGO_HEIGHT, false); | 238 | REMOTE_LOGO_WIDTH, REMOTE_LOGO_HEIGHT); |
239 | #endif | 239 | #endif |
240 | #else | 240 | #else |
241 | pgfx_clear_display(); | 241 | pgfx_clear_display(); |
@@ -266,7 +266,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { | |||
266 | #ifdef HAVE_LCD_BITMAP | 266 | #ifdef HAVE_LCD_BITMAP |
267 | rb->lcd_update(); | 267 | rb->lcd_update(); |
268 | #ifdef REMOTE_LOGO | 268 | #ifdef REMOTE_LOGO |
269 | rb->remote_update(); | 269 | rb->lcd_remote_update(); |
270 | #endif | 270 | #endif |
271 | #else | 271 | #else |
272 | if (cpos != old_cpos) { | 272 | if (cpos != old_cpos) { |