summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2010-02-24 21:47:15 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2010-02-24 21:47:15 +0000
commit6543b8629e205825c0eb9175feab5ac68f2582b4 (patch)
tree7100c2d0a7f0fac776bbc596dcb822dfa6180a67
parent04e3eb0c54bf3b395912d44e767aa43964d810e1 (diff)
downloadrockbox-6543b8629e205825c0eb9175feab5ac68f2582b4.tar.gz
rockbox-6543b8629e205825c0eb9175feab5ac68f2582b4.tar.bz2
rockbox-6543b8629e205825c0eb9175feab5ac68f2582b4.zip
Viewer: Fix red cause by stupid lack of attention
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24897 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/viewer.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c
index c4197a383c..8dae52780e 100644
--- a/apps/plugins/viewer.c
+++ b/apps/plugins/viewer.c
@@ -1601,7 +1601,9 @@ enum plugin_status plugin_start(const void* file)
button = rb->button_get_w_tmo(HZ/10);
switch (button) {
case VIEWER_MENU:
+#ifdef VIEWER_MENU2
case VIEWER_MENU2:
+#endif
viewer_menu();
break;
@@ -1614,9 +1616,11 @@ enum plugin_status plugin_start(const void* file)
break;
case VIEWER_PAGE_UP:
- case VIEWER_PAGE_UP2:
case VIEWER_PAGE_UP | BUTTON_REPEAT:
+#ifdef VIEWER_PAGE_UP2
+ case VIEWER_PAGE_UP2:
case VIEWER_PAGE_UP2 | BUTTON_REPEAT:
+#endif
if (prefs.scroll_mode == PAGE)
{
/* Page up */
@@ -1634,9 +1638,11 @@ enum plugin_status plugin_start(const void* file)
break;
case VIEWER_PAGE_DOWN:
- case VIEWER_PAGE_DOWN2:
case VIEWER_PAGE_DOWN | BUTTON_REPEAT:
+#ifdef VIEWER_PAGE_DOWN2
+ case VIEWER_PAGE_DOWN2:
case VIEWER_PAGE_DOWN2 | BUTTON_REPEAT:
+#endif
if (prefs.scroll_mode == PAGE)
{
/* Page down */
@@ -1723,7 +1729,9 @@ enum plugin_status plugin_start(const void* file)
case VIEWER_RC_QUIT:
#endif
case VIEWER_QUIT:
+#ifdef VIEWER_QUIT2
case VIEWER_QUIT2:
+#endif
viewer_exit(NULL);
done = true;
break;