(D3D) check_window - check if d3d_quit has been set to true, and if so,

set quit pointer value to true
This commit is contained in:
twinaphex 2014-01-18 21:07:34 +01:00
parent 280b9d5406
commit 544df55017
2 changed files with 3 additions and 2 deletions

View File

@ -100,9 +100,7 @@ static void d3d_deinitialize(void *data)
d3d->needs_restore = false;
}
#ifdef HAVE_WINDOW
extern LRESULT CALLBACK WindowProc(HWND hWnd, UINT message,
WPARAM wParam, LPARAM lParam);
#endif

View File

@ -517,6 +517,9 @@ static void gfx_ctx_d3d_check_window(bool *quit,
D3DVideo *d3d = reinterpret_cast<D3DVideo*>(driver.video_data);
*quit = false;
*resize = false;
if (d3d_quit)
*quit = true;
#ifndef _XBOX
MSG msg;