mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 00:32:46 +00:00
Merge pull request #8535 from natinusala/master
ozone: fix content metadata for music and movie playlists
This commit is contained in:
commit
306653d069
@ -1153,7 +1153,9 @@ void ozone_update_content_metadata(ozone_handle_t *ozone)
|
|||||||
snprintf(ozone->selection_core_name, sizeof(ozone->selection_core_name),
|
snprintf(ozone->selection_core_name, sizeof(ozone->selection_core_name),
|
||||||
"%s %s", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PLAYLIST_SUBLABEL_CORE), core_label);
|
"%s %s", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PLAYLIST_SUBLABEL_CORE), core_label);
|
||||||
|
|
||||||
ozone->selection_core_is_imageviewer = string_is_equal(core_label, "imageviewer");
|
ozone->selection_core_is_viewer = string_is_equal(core_label, "imageviewer")
|
||||||
|
|| string_is_equal(core_label, "musicplayer")
|
||||||
|
|| string_is_equal(core_label, "movieplayer");
|
||||||
|
|
||||||
word_wrap(ozone->selection_core_name, ozone->selection_core_name, (unsigned)((float)ozone->dimensions.thumbnail_bar_width * (float)0.85) / ozone->footer_font_glyph_width, false);
|
word_wrap(ozone->selection_core_name, ozone->selection_core_name, (unsigned)((float)ozone->dimensions.thumbnail_bar_width * (float)0.85) / ozone->footer_font_glyph_width, false);
|
||||||
ozone->selection_core_name_lines = ozone_count_lines(ozone->selection_core_name);
|
ozone->selection_core_name_lines = ozone_count_lines(ozone->selection_core_name);
|
||||||
|
@ -240,7 +240,7 @@ struct ozone_handle
|
|||||||
char selection_playtime[255];
|
char selection_playtime[255];
|
||||||
char selection_lastplayed[255];
|
char selection_lastplayed[255];
|
||||||
unsigned selection_core_name_lines;
|
unsigned selection_core_name_lines;
|
||||||
bool selection_core_is_imageviewer;
|
bool selection_core_is_viewer;
|
||||||
|
|
||||||
bool is_db_manager_list;
|
bool is_db_manager_list;
|
||||||
};
|
};
|
||||||
|
@ -743,7 +743,7 @@ void ozone_draw_thumbnail_bar(ozone_handle_t *ozone, video_frame_info_t *video_i
|
|||||||
ozone_pure_white
|
ozone_pure_white
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else if (!ozone->selection_core_is_imageviewer)
|
else if (!ozone->selection_core_is_viewer)
|
||||||
{
|
{
|
||||||
unsigned y = video_info->height / 2 + ozone->dimensions.sidebar_entry_icon_padding / 2;
|
unsigned y = video_info->height / 2 + ozone->dimensions.sidebar_entry_icon_padding / 2;
|
||||||
unsigned content_metadata_padding = ozone->dimensions.sidebar_entry_icon_padding*3;
|
unsigned content_metadata_padding = ozone->dimensions.sidebar_entry_icon_padding*3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user