summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer/imageviewer.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-07-24 15:39:01 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-08-04 18:59:46 +0000
commit005c414e5f2a0ace3756da767d3920ac98cb5c76 (patch)
tree73b17f1e733ffb64a475657eefa21b17ac1ff7b9 /apps/plugins/imageviewer/imageviewer.c
parentef41cc6623226f3ce7630211ef88640a48fb8e59 (diff)
downloadrockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.tar.gz
rockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.zip
Document intentional fallthroughs + fix harmless unintended ones
Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b
Diffstat (limited to 'apps/plugins/imageviewer/imageviewer.c')
-rw-r--r--apps/plugins/imageviewer/imageviewer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/imageviewer/imageviewer.c b/apps/plugins/imageviewer/imageviewer.c
index 4b1a982438..508cf1a5b5 100644
--- a/apps/plugins/imageviewer/imageviewer.c
+++ b/apps/plugins/imageviewer/imageviewer.c
@@ -600,6 +600,7 @@ static int scroll_bmp(struct image_info *info)
600 if (entries > 1 && info->width <= LCD_WIDTH 600 if (entries > 1 && info->width <= LCD_WIDTH
601 && info->height <= LCD_HEIGHT) 601 && info->height <= LCD_HEIGHT)
602 return change_filename(DIR_PREV); 602 return change_filename(DIR_PREV);
603 /* fallthrough */
603 case IMGVIEW_LEFT | BUTTON_REPEAT: 604 case IMGVIEW_LEFT | BUTTON_REPEAT:
604 pan_view_left(info); 605 pan_view_left(info);
605 break; 606 break;
@@ -608,6 +609,7 @@ static int scroll_bmp(struct image_info *info)
608 if (entries > 1 && info->width <= LCD_WIDTH 609 if (entries > 1 && info->width <= LCD_WIDTH
609 && info->height <= LCD_HEIGHT) 610 && info->height <= LCD_HEIGHT)
610 return change_filename(DIR_NEXT); 611 return change_filename(DIR_NEXT);
612 /* fallthrough */
611 case IMGVIEW_RIGHT | BUTTON_REPEAT: 613 case IMGVIEW_RIGHT | BUTTON_REPEAT:
612 pan_view_right(info); 614 pan_view_right(info);
613 break; 615 break;