Get rid of gfx_widgets_set_status_text
This commit is contained in:
parent
1bf87b1b48
commit
5838817bbd
|
@ -2017,18 +2017,6 @@ static void gfx_widgets_free(dispgfx_widget_t *p_dispwidget)
|
|||
font_driver_bind_block(NULL, NULL);
|
||||
}
|
||||
|
||||
bool gfx_widgets_set_status_text(
|
||||
void *data,
|
||||
const char *new_status_text)
|
||||
{
|
||||
dispgfx_widget_t *p_dispwidget = (dispgfx_widget_t*)data;
|
||||
|
||||
strlcpy(p_dispwidget->gfx_widgets_status_text,
|
||||
new_status_text, sizeof(p_dispwidget->gfx_widgets_status_text));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef HAVE_TRANSLATE
|
||||
bool gfx_widgets_ai_service_overlay_load(
|
||||
dispgfx_widget_t *p_dispwidget,
|
||||
|
|
|
@ -392,10 +392,6 @@ void gfx_widgets_frame(void *data);
|
|||
|
||||
void *dispwidget_get_ptr(void);
|
||||
|
||||
bool gfx_widgets_set_status_text(
|
||||
void *data,
|
||||
const char *new_status_text);
|
||||
|
||||
extern const gfx_widget_t gfx_widget_screenshot;
|
||||
extern const gfx_widget_t gfx_widget_volume;
|
||||
extern const gfx_widget_t gfx_widget_generic_message;
|
||||
|
|
|
@ -33356,9 +33356,11 @@ static void video_driver_frame(const void *data, unsigned width,
|
|||
{
|
||||
#if defined(HAVE_GFX_WIDGETS)
|
||||
if (widgets_active)
|
||||
gfx_widgets_set_status_text(
|
||||
&p_rarch->dispwidget_st,
|
||||
status_text);
|
||||
strlcpy(
|
||||
p_rarch->dispwidget_st.gfx_widgets_status_text,
|
||||
status_text,
|
||||
sizeof(p_rarch->dispwidget_st.gfx_widgets_status_text)
|
||||
);
|
||||
else
|
||||
#endif
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue