mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Document intentional fallthroughs + fix harmless unintended ones
Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b
This commit is contained in:
parent
ef41cc6623
commit
005c414e5f
24 changed files with 36 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue