mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
gfx_widgets_deinit - turn return value into bool
This commit is contained in:
parent
9707f1f622
commit
d6229ed70d
@ -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(
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user