Create win32_window_reset

This commit is contained in:
twinaphex 2015-11-17 10:16:16 +01:00
parent ab99c8ff8d
commit bb99dc4e38
3 changed files with 9 additions and 3 deletions

View File

@ -694,6 +694,12 @@ HWND win32_get_window(void)
return g_hwnd;
}
void win32_window_reset(void)
{
g_quit = false;
g_restore_desktop = false;
}
void win32_destroy_window(void)
{
#ifndef _XBOX

View File

@ -81,6 +81,8 @@ bool win32_has_focus(void);
void win32_check_window(bool *quit,
bool *resize, unsigned *width, unsigned *height);
void win32_window_reset(void);
void win32_destroy_window(void);
#endif

View File

@ -313,9 +313,7 @@ static bool gfx_ctx_wgl_init(void *data)
if (g_inited)
return false;
g_quit = false;
g_restore_desktop = false;
win32_window_reset();
win32_monitor_init();
if (!win32_window_init(&wndclass, true))
return false;