summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/imageviewer')
-rw-r--r--apps/plugins/imageviewer/imageviewer.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/plugins/imageviewer/imageviewer.c b/apps/plugins/imageviewer/imageviewer.c
index 0635a877d4..6750c6c912 100644
--- a/apps/plugins/imageviewer/imageviewer.c
+++ b/apps/plugins/imageviewer/imageviewer.c
@@ -345,7 +345,9 @@ static int show_menu(void) /* return 1 to quit */
345static int ask_and_get_audio_buffer(const char *filename) 345static int ask_and_get_audio_buffer(const char *filename)
346{ 346{
347 int button; 347 int button;
348#if defined(IMGVIEW_ZOOM_PRE)
348 int lastbutton = BUTTON_NONE; 349 int lastbutton = BUTTON_NONE;
350#endif
349 rb->lcd_setfont(FONT_SYSFIXED); 351 rb->lcd_setfont(FONT_SYSFIXED);
350 rb->lcd_clear_display(); 352 rb->lcd_clear_display();
351 rb->lcd_puts(0, 0, rb->strrchr(filename,'/')+1); 353 rb->lcd_puts(0, 0, rb->strrchr(filename,'/')+1);
@@ -414,9 +416,10 @@ static int ask_and_get_audio_buffer(const char *filename)
414 == SYS_USB_CONNECTED) 416 == SYS_USB_CONNECTED)
415 return PLUGIN_USB_CONNECTED; 417 return PLUGIN_USB_CONNECTED;
416 } 418 }
417 419#if defined(IMGVIEW_ZOOM_PRE)
418 if (button != BUTTON_NONE) 420 if (button != BUTTON_NONE)
419 lastbutton = button; 421 lastbutton = button;
422#endif
420 } 423 }
421} 424}
422#endif /* USE_PLUG_BUF */ 425#endif /* USE_PLUG_BUF */
@@ -548,7 +551,9 @@ static void pan_view_down(struct image_info *info)
548static int scroll_bmp(struct image_info *info) 551static int scroll_bmp(struct image_info *info)
549{ 552{
550 int button; 553 int button;
554#if defined(IMGVIEW_ZOOM_PRE) || defined(IMGVIEW_MENU_PRE)
551 int lastbutton = BUTTON_NONE; 555 int lastbutton = BUTTON_NONE;
556#endif
552 557
553 while (true) 558 while (true)
554 { 559 {
@@ -669,9 +674,10 @@ static int scroll_bmp(struct image_info *info)
669 break; 674 break;
670 675
671 } /* switch */ 676 } /* switch */
672 677#if defined(IMGVIEW_ZOOM_PRE) || defined(IMGVIEW_MENU_PRE)
673 if (button != BUTTON_NONE) 678 if (button != BUTTON_NONE)
674 lastbutton = button; 679 lastbutton = button;
680#endif
675 } /* while (true) */ 681 } /* while (true) */
676} 682}
677 683