mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-05 19:16:09 +00:00
(D3D PC) Properly implement WM_DESTROY again
This commit is contained in:
parent
ab75946bbc
commit
01b826c32f
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user