Win32: fix non closing window when clicking the X

it wasn't getting out of the event polling loop
This commit is contained in:
Thomas Bernard 2019-01-31 22:49:35 +01:00
parent 774bd73602
commit 79621855f9
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -161,6 +161,7 @@ static LRESULT CALLBACK Win32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
break;
case WM_CLOSE:
Quit_is_required = 1;
user_feedback_required = 1;
return 0;
case WM_ERASEBKGND:
// the background should be erased