This commit is contained in:
love-code-yeyixiao 2024-04-20 14:41:59 +08:00
parent 3c765fb245
commit 295cb404ae
1 changed files with 2 additions and 2 deletions

View File

@ -1950,7 +1950,7 @@ _FX BOOL Gui_MoveWindow(
SystemParametersInfoA(SPI_GETWORKAREA, 0, &rt, 0);
int y1 = GetSystemMetrics(SM_CYSCREEN) - rt.bottom;
if (y + h > y1)
h = y1 - y - GetSystemMetrics(4);
h = y1 - y-2;
}
then:
return __sys_MoveWindow(hWnd, x, y, w, h, bRepaint);
@ -1989,7 +1989,7 @@ _FX BOOL Gui_SetWindowPos(
SystemParametersInfoA(SPI_GETWORKAREA, 0, &rt, 0);
int y1 = GetSystemMetrics(SM_CYSCREEN) - rt.bottom;
if (y+h > y1)
h = y1-y - GetSystemMetrics(4);
h = y1-y - 2;
}
then:
if (Gui_UseProxyService && !Gui_IsSameBox(hWnd, NULL, NULL)) {