ozone: fix content metadata for music and movie playlists

This commit is contained in:
natinusala 2019-03-29 10:08:12 +01:00
parent 0c91f4dff5
commit a924ac15c9
3 changed files with 5 additions and 3 deletions

View File

@ -1153,7 +1153,9 @@ void ozone_update_content_metadata(ozone_handle_t *ozone)
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);
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);
ozone->selection_core_name_lines = ozone_count_lines(ozone->selection_core_name);

View File

@ -240,7 +240,7 @@ struct ozone_handle
char selection_playtime[255];
char selection_lastplayed[255];
unsigned selection_core_name_lines;
bool selection_core_is_imageviewer;
bool selection_core_is_viewer;
bool is_db_manager_list;
};

View File

@ -743,7 +743,7 @@ void ozone_draw_thumbnail_bar(ozone_handle_t *ozone, video_frame_info_t *video_i
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 content_metadata_padding = ozone->dimensions.sidebar_entry_icon_padding*3;