Fixed restoring a window that was maximized then minimized, then restored.
parent
ccf0566ca4
commit
772407627b
|
@ -807,6 +807,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch (wParam) {
|
switch (wParam) {
|
||||||
case SIZE_MAXIMIZED:
|
case SIZE_MAXIMIZED:
|
||||||
|
SDL_SendWindowEvent(data->window,
|
||||||
|
SDL_WINDOWEVENT_RESTORED, 0, 0);
|
||||||
SDL_SendWindowEvent(data->window,
|
SDL_SendWindowEvent(data->window,
|
||||||
SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
|
SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue