(D3D PC) Properly implement WM_DESTROY again

This commit is contained in:
twinaphex 2014-05-30 22:46:47 +02:00
parent ab75946bbc
commit 01b826c32f
2 changed files with 2 additions and 6 deletions

View File

@ -86,11 +86,7 @@ LRESULT CALLBACK WindowProc(HWND hWnd, UINT message,
return win32_handle_keyboard_event(hWnd, message, wParam, lParam);
case WM_DESTROY:
//TODO - We can't set d3d_quit to true here since WM_DESTROY might be invoked
//on tear-down/setup, and we would exit straight away immediately
//
//Right now, quit button of window is broken because of this.
//d3d_quit = true;
d3d_quit = true;
return 0;
case WM_SIZE:
unsigned new_width, new_height;

View File

@ -835,7 +835,7 @@ static bool d3d_alive(void *data)
else if (resize)
d3d->should_resize = true;
return !d3d->quitting;
return !quit;
}
static bool d3d_focus(void *data)