Improve action_switch_thumbnail - if thumbnail mode is 'off', then

pressing 'Y button' will do nothing. If not, you can cycle between
all thumbnail modes (except for Off)
This commit is contained in:
twinaphex 2016-04-28 23:19:32 +02:00
parent 6db13ab51d
commit 2aad6bf2bb

View File

@ -91,11 +91,13 @@ int action_switch_thumbnail(const char *path,
if (!settings)
return -1;
if (settings->menu.thumbnails == 0)
return 0;
settings->menu.thumbnails++;
if (settings->menu.thumbnails > 3)
settings->menu.thumbnails = 0;
settings->menu.thumbnails = 1;
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_THUMBNAIL_PATH, NULL);
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_THUMBNAIL_IMAGE, NULL);