1
0
Fork 0
forked from len0rd/rockbox

Document intentional fallthroughs + fix harmless unintended ones

Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b
This commit is contained in:
Aidan MacDonald 2021-07-24 15:39:01 +01:00
parent ef41cc6623
commit 005c414e5f
24 changed files with 36 additions and 2 deletions

View file

@ -600,6 +600,7 @@ static int scroll_bmp(struct image_info *info)
if (entries > 1 && info->width <= LCD_WIDTH
&& info->height <= LCD_HEIGHT)
return change_filename(DIR_PREV);
/* fallthrough */
case IMGVIEW_LEFT | BUTTON_REPEAT:
pan_view_left(info);
break;
@ -608,6 +609,7 @@ static int scroll_bmp(struct image_info *info)
if (entries > 1 && info->width <= LCD_WIDTH
&& info->height <= LCD_HEIGHT)
return change_filename(DIR_NEXT);
/* fallthrough */
case IMGVIEW_RIGHT | BUTTON_REPEAT:
pan_view_right(info);
break;