diff options
Diffstat (limited to 'apps/plugins/rockboy/sys_rockbox.c')
-rw-r--r-- | apps/plugins/rockboy/sys_rockbox.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c index 40f68681d8..783accd01b 100644 --- a/apps/plugins/rockboy/sys_rockbox.c +++ b/apps/plugins/rockboy/sys_rockbox.c | |||
@@ -76,7 +76,7 @@ void ev_poll(void) | |||
76 | released = ~newbuttonstate & oldbuttonstate; | 76 | released = ~newbuttonstate & oldbuttonstate; |
77 | pressed = newbuttonstate & ~oldbuttonstate; | 77 | pressed = newbuttonstate & ~oldbuttonstate; |
78 | oldbuttonstate = newbuttonstate; | 78 | oldbuttonstate = newbuttonstate; |
79 | #if CONFIG_KEYPAD == IRIVER_H100_PAD | 79 | #if (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && (LCD_DEPTH == 2) |
80 | if (rb->button_hold()&~holdbutton) | 80 | if (rb->button_hold()&~holdbutton) |
81 | fb.mode=(fb.mode+1)%4; | 81 | fb.mode=(fb.mode+1)%4; |
82 | holdbutton=rb->button_hold(); | 82 | holdbutton=rb->button_hold(); |
@@ -161,8 +161,7 @@ void ev_poll(void) | |||
161 | #else | 161 | #else |
162 | if(pressed & options.MENU) { | 162 | if(pressed & options.MENU) { |
163 | #endif | 163 | #endif |
164 | #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ | 164 | #if (CONFIG_KEYPAD != RECORDER_PAD) |
165 | defined(HAVE_LCD_COLOR) | ||
166 | #ifdef HAVE_WHEEL_POSITION | 165 | #ifdef HAVE_WHEEL_POSITION |
167 | rb->wheel_send_events(true); | 166 | rb->wheel_send_events(true); |
168 | #endif | 167 | #endif |