diff options
| author | Jonas Häggqvist <rasher@rasher.dk> | 2005-05-21 13:22:39 +0000 |
|---|---|---|
| committer | Jonas Häggqvist <rasher@rasher.dk> | 2005-05-21 13:22:39 +0000 |
| commit | 2ab3fae3eefc634a4936029ff079632b9b90ee79 (patch) | |
| tree | 5aa4fbe1f4e17b91c8a5cb999a452affcce63f5d /apps/plugins/logo.c | |
| parent | e86ee9a33fe62f7c5ac4579c339382221d8fc2cd (diff) | |
| download | rockbox-2ab3fae3eefc634a4936029ff079632b9b90ee79.zip rockbox-2ab3fae3eefc634a4936029ff079632b9b90ee79.tar.gz rockbox-2ab3fae3eefc634a4936029ff079632b9b90ee79.tar.bz2 rockbox-2ab3fae3eefc634a4936029ff079632b9b90ee79.tar.xz | |
Remote support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6499 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/logo.c')
| -rw-r--r-- | apps/plugins/logo.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c index 9cace89..acfea23 100644 --- a/apps/plugins/logo.c +++ b/apps/plugins/logo.c @@ -25,8 +25,8 @@ #define RAND_SCALE 5 #if defined(IRIVER_H100) && !defined(SIMULATOR) -#define REMOTE_WIDTH 134 -#define REMOTE_HEIGHT 65 +#define REMOTE_WIDTH LCD_REMOTE_WIDTH +#define REMOTE_HEIGHT LCD_REMOTE_HEIGHT #define REMOTE_LOGO_WIDTH 91 #define REMOTE_LOGO_HEIGHT 32 #define REMOTE_LOGO rockbox91x32 @@ -191,6 +191,7 @@ const unsigned char rockbox16x7[] = { enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { + static char debug[30]; int button; int timer = 10; int x = (DISPLAY_WIDTH / 2) - (LOGO_WIDTH / 2); @@ -226,6 +227,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { (x * (REMOTE_WIDTH - REMOTE_LOGO_WIDTH)) / (DISPLAY_WIDTH - LOGO_WIDTH), (y * (REMOTE_HEIGHT - REMOTE_LOGO_HEIGHT)) / (DISPLAY_HEIGHT - LOGO_HEIGHT), REMOTE_LOGO_WIDTH, REMOTE_LOGO_HEIGHT, false); + rb->snprintf(debug, sizeof(debug), "X: %d Y: %d - RX: %d RY: %d", x, y, (x * (REMOTE_WIDTH - REMOTE_LOGO_WIDTH)) / (DISPLAY_WIDTH - LOGO_WIDTH), (y * (REMOTE_HEIGHT - REMOTE_LOGO_HEIGHT)) / (DISPLAY_HEIGHT - LOGO_HEIGHT)); + rb->lcd_putsxy(5, DISPLAY_HEIGHT - 10, debug); #endif #else pgfx_clear_display(); |