ozone: fix content metadata for images playlist

This commit is contained in:
natinusala 2019-03-28 10:39:11 +01:00
parent 190cf1be97
commit 2148f8ca0a
3 changed files with 4 additions and 1 deletions

View File

@ -1153,6 +1153,8 @@ 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");
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,6 +240,7 @@ struct ozone_handle
char selection_playtime[255];
char selection_lastplayed[255];
unsigned selection_core_name_lines;
bool selection_core_is_imageviewer;
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 (!string_is_equal(ozone->selection_core_name, "imageviewer"))
else if (!ozone->selection_core_is_imageviewer)
{
unsigned y = video_info->height / 2 + ozone->dimensions.sidebar_entry_icon_padding / 2;
unsigned content_metadata_padding = ozone->dimensions.sidebar_entry_icon_padding*3;