Remove obsolete font_driver_has_render_msg

This commit is contained in:
twinaphex 2016-11-20 17:51:16 +01:00
parent 1b00796f64
commit 5fc1b0c88e
5 changed files with 3 additions and 10 deletions

View File

@ -757,7 +757,7 @@ static bool ctr_frame(void* data, const void* frame,
}
if (font_driver_has_render_msg() && msg)
if (msg)
font_driver_render_msg(NULL, msg, NULL);
// font_driver_render_msg(NULL, "TEST: 123 ABC àüî", NULL);

View File

@ -1503,7 +1503,7 @@ static bool d3d_frame(void *data, const void *frame,
return false;
}
if (font_driver_has_render_msg() && msg)
if (msg)
{
struct font_params font_parms = {0};
font_driver_render_msg(NULL, msg, &font_parms);

View File

@ -1273,7 +1273,7 @@ static bool gl_frame(void *data, const void *frame,
}
#endif
if (font_driver_has_render_msg() && msg)
if (msg)
font_driver_render_msg(NULL, msg, NULL);
#ifdef HAVE_OVERLAY

View File

@ -278,11 +278,6 @@ static bool font_init_first(
return false;
}
bool font_driver_has_render_msg(void)
{
return true;
}
void font_driver_render_msg(void *font_data,
const char *msg, const struct font_params *params)
{

View File

@ -138,8 +138,6 @@ typedef struct
int font_renderer_create_default(const void **driver,
void **handle, const char *font_path, unsigned font_size);
bool font_driver_has_render_msg(void);
void font_driver_render_msg(void *font_data, const char *msg, const struct font_params *params);
void font_driver_bind_block(void *font_data, void *block);