mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Viewer: Fix red cause by stupid lack of attention
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24897 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
04e3eb0c54
commit
6543b8629e
1 changed files with 10 additions and 2 deletions
|
@ -1601,7 +1601,9 @@ enum plugin_status plugin_start(const void* file)
|
||||||
button = rb->button_get_w_tmo(HZ/10);
|
button = rb->button_get_w_tmo(HZ/10);
|
||||||
switch (button) {
|
switch (button) {
|
||||||
case VIEWER_MENU:
|
case VIEWER_MENU:
|
||||||
|
#ifdef VIEWER_MENU2
|
||||||
case VIEWER_MENU2:
|
case VIEWER_MENU2:
|
||||||
|
#endif
|
||||||
viewer_menu();
|
viewer_menu();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1614,9 +1616,11 @@ enum plugin_status plugin_start(const void* file)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VIEWER_PAGE_UP:
|
case VIEWER_PAGE_UP:
|
||||||
case VIEWER_PAGE_UP2:
|
|
||||||
case VIEWER_PAGE_UP | BUTTON_REPEAT:
|
case VIEWER_PAGE_UP | BUTTON_REPEAT:
|
||||||
|
#ifdef VIEWER_PAGE_UP2
|
||||||
|
case VIEWER_PAGE_UP2:
|
||||||
case VIEWER_PAGE_UP2 | BUTTON_REPEAT:
|
case VIEWER_PAGE_UP2 | BUTTON_REPEAT:
|
||||||
|
#endif
|
||||||
if (prefs.scroll_mode == PAGE)
|
if (prefs.scroll_mode == PAGE)
|
||||||
{
|
{
|
||||||
/* Page up */
|
/* Page up */
|
||||||
|
@ -1634,9 +1638,11 @@ enum plugin_status plugin_start(const void* file)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VIEWER_PAGE_DOWN:
|
case VIEWER_PAGE_DOWN:
|
||||||
case VIEWER_PAGE_DOWN2:
|
|
||||||
case VIEWER_PAGE_DOWN | BUTTON_REPEAT:
|
case VIEWER_PAGE_DOWN | BUTTON_REPEAT:
|
||||||
|
#ifdef VIEWER_PAGE_DOWN2
|
||||||
|
case VIEWER_PAGE_DOWN2:
|
||||||
case VIEWER_PAGE_DOWN2 | BUTTON_REPEAT:
|
case VIEWER_PAGE_DOWN2 | BUTTON_REPEAT:
|
||||||
|
#endif
|
||||||
if (prefs.scroll_mode == PAGE)
|
if (prefs.scroll_mode == PAGE)
|
||||||
{
|
{
|
||||||
/* Page down */
|
/* Page down */
|
||||||
|
@ -1723,7 +1729,9 @@ enum plugin_status plugin_start(const void* file)
|
||||||
case VIEWER_RC_QUIT:
|
case VIEWER_RC_QUIT:
|
||||||
#endif
|
#endif
|
||||||
case VIEWER_QUIT:
|
case VIEWER_QUIT:
|
||||||
|
#ifdef VIEWER_QUIT2
|
||||||
case VIEWER_QUIT2:
|
case VIEWER_QUIT2:
|
||||||
|
#endif
|
||||||
viewer_exit(NULL);
|
viewer_exit(NULL);
|
||||||
done = true;
|
done = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue