gfx_widgets_deinit - turn return value into bool

This commit is contained in:
twinaphex 2020-06-08 04:12:15 +02:00
parent 9707f1f622
commit d6229ed70d
2 changed files with 5 additions and 3 deletions

View File

@ -2097,17 +2097,19 @@ error:
return false;
}
void gfx_widgets_deinit(void)
bool gfx_widgets_deinit(void)
{
dispgfx_widget_t *p_dispwidget = (dispgfx_widget_t*)dispwidget_get_ptr();
if (!p_dispwidget->widgets_inited)
return;
return false;
p_dispwidget->widgets_active = false;
gfx_widgets_context_destroy(p_dispwidget);
if (!p_dispwidget->widgets_persisting)
gfx_widgets_free(p_dispwidget);
return true;
}
static void gfx_widgets_font_init(

View File

@ -167,7 +167,7 @@ bool gfx_widgets_init(
unsigned width, unsigned height, bool fullscreen,
const char *dir_assets, char *font_path);
void gfx_widgets_deinit(void);
bool gfx_widgets_deinit(void);
void gfx_widgets_msg_queue_push(
retro_task_t *task, const char *msg,