The WM_SIZE handler now forces winsizey to a minimum value of 0.

This commit is contained in:
OBattler
2017-06-11 23:53:01 +02:00
parent 5088f5f123
commit f56bfa5e62

View File

@@ -2156,6 +2156,11 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
winsizex = (lParam & 0xFFFF);
winsizey = (lParam >> 16) - (17 + 6);
if (winsizey < 0)
{
winsizey = 0;
}
MoveWindow(hwndRender, 0, 0, winsizex, winsizey, TRUE);
if (vid_apis[video_fullscreen][vid_api].resize)