mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
ozone: fix is_playlist, fix thumbnails display
This commit is contained in:
parent
76d0b4ebd5
commit
c1c71f35db
@ -737,7 +737,7 @@ void ozone_draw_thumbnail_bar(ozone_handle_t *ozone, video_frame_info_t *video_i
|
||||
}
|
||||
|
||||
/* Bottom row : "left" thumbnail or content metadata */
|
||||
if (left_thumbnail)
|
||||
if (thumbnail && left_thumbnail)
|
||||
{
|
||||
unsigned thumb_x_position = x_position + sidebar_width/2 - (ozone->dimensions.left_thumbnail_width + ozone->dimensions.sidebar_entry_icon_padding) / 2;
|
||||
unsigned thumb_y_position = video_info->height / 2 + ozone->dimensions.sidebar_entry_icon_padding / 2;
|
||||
|
@ -746,11 +746,20 @@ bool ozone_is_playlist(ozone_handle_t *ozone, bool depth)
|
||||
{
|
||||
bool is_playlist;
|
||||
|
||||
switch (ozone->categories_selection_ptr)
|
||||
if (ozone->categories_selection_ptr > ozone->system_tab_end)
|
||||
{
|
||||
is_playlist = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (ozone->tabs[ozone->categories_selection_ptr])
|
||||
{
|
||||
case OZONE_SYSTEM_TAB_MAIN:
|
||||
case OZONE_SYSTEM_TAB_SETTINGS:
|
||||
case OZONE_SYSTEM_TAB_ADD:
|
||||
#ifdef HAVE_NETWORKING
|
||||
case OZONE_SYSTEM_TAB_NETPLAY:
|
||||
#endif
|
||||
is_playlist = false;
|
||||
break;
|
||||
case OZONE_SYSTEM_TAB_HISTORY:
|
||||
@ -761,14 +770,14 @@ bool ozone_is_playlist(ozone_handle_t *ozone, bool depth)
|
||||
#endif
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
case OZONE_SYSTEM_TAB_IMAGES:
|
||||
#endif
|
||||
#ifdef HAVE_NETWORKING
|
||||
case OZONE_SYSTEM_TAB_NETPLAY:
|
||||
#endif
|
||||
default:
|
||||
is_playlist = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (depth)
|
||||
return is_playlist && ozone->depth == 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user