diff --git a/ui/drivers/null/ui_null_window.c b/ui/drivers/null/ui_null_window.c index 46a8596cbb..02035afb7b 100644 --- a/ui/drivers/null/ui_null_window.c +++ b/ui/drivers/null/ui_null_window.c @@ -21,12 +21,17 @@ #include "../../ui_companion_driver.h" +void ui_window_null_destroy(void *data) +{ +} + static void ui_window_null_set_visible(void *data, bool set_visible) { } const ui_window_t ui_window_null = { + ui_window_null_destroy, ui_window_null_set_visible, "null", }; diff --git a/ui/drivers/win32/ui_win32_window.c b/ui/drivers/win32/ui_win32_window.c index b8357fd9ea..43b8921ed0 100644 --- a/ui/drivers/win32/ui_win32_window.c +++ b/ui/drivers/win32/ui_win32_window.c @@ -58,6 +58,7 @@ void ui_window_win32_set_visible(void *data, } const ui_window_t ui_window_win32 = { + ui_window_win32_destroy, ui_window_win32_set_visible, "win32", }; diff --git a/ui/ui_companion_driver.h b/ui/ui_companion_driver.h index a471a01690..77cc2a00ae 100644 --- a/ui/ui_companion_driver.h +++ b/ui/ui_companion_driver.h @@ -33,6 +33,7 @@ RETRO_BEGIN_DECLS typedef struct ui_window { + void (*destroy)(void *data); void (*set_visible)(void *data, bool visible); const char *ident; } ui_window_t;