diff --git a/gfx/font_driver.c b/gfx/font_driver.c index 0f4591274d..87f45b425a 100644 --- a/gfx/font_driver.c +++ b/gfx/font_driver.c @@ -916,12 +916,11 @@ font_data_t *font_driver_init_first( void font_driver_init_osd( void *video_data, - const void *video_info_data, + const video_info_t *video_info, bool threading_hint, bool is_threaded, enum font_driver_render_api api) { - const video_info_t *video_info = (const video_info_t*)video_info_data; if (!video_font_driver && video_info) video_font_driver = font_driver_init_first(video_data, *video_info->path_font ? video_info->path_font : NULL, diff --git a/gfx/font_driver.h b/gfx/font_driver.h index 97ec374823..9b7801eaa9 100644 --- a/gfx/font_driver.h +++ b/gfx/font_driver.h @@ -98,7 +98,7 @@ font_data_t *font_driver_init_first( void font_driver_init_osd( void *video_data, - const void *video_info_data, + const video_info_t *video_info, bool threading_hint, bool is_threaded, enum font_driver_render_api api); diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 7afc5e2878..9c8678ec5e 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -1058,7 +1058,7 @@ static void xmb_render_messagebox_internal( if (!string_is_empty(msg)) { int width = font_driver_get_message_width( - xmb->font, msg, strlen(msg), 1); + xmb->font, msg, strlen(msg), 1.0f); if (width > longest_width) longest_width = width; } @@ -6097,7 +6097,7 @@ static void xmb_frame(void *data, video_frame_info_t *video_info) percent_width = (unsigned) font_driver_get_message_width( - xmb->font, msg, strlen(msg), 1); + xmb->font, msg, strlen(msg), 1.0f); xmb_draw_text(xmb_shadows_enable, xmb, settings, msg, video_width - xmb->margins_title_left - x_pos, @@ -7363,9 +7363,9 @@ static void xmb_context_reset_internal(xmb_handle_t *xmb, if (wideglyph_str) { int char_width = - font_driver_get_message_width(xmb->font, "a", 1, 1); + font_driver_get_message_width(xmb->font, "a", 1, 1.0f); int wideglyph_width = - font_driver_get_message_width(xmb->font, wideglyph_str, strlen(wideglyph_str), 1); + font_driver_get_message_width(xmb->font, wideglyph_str, strlen(wideglyph_str), 1.0f); if (wideglyph_width > 0 && char_width > 0) xmb->wideglyph_width = wideglyph_width * 100 / char_width;