mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-26 12:59:18 +01:00
Fixed restoring a window that was maximized then minimized, then restored.
This commit is contained in:
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
Block a user