1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

make sure window titlebar is visible if window bigger than screen

This commit is contained in:
FunkyFr3sh 2023-08-24 19:18:12 +02:00
parent 1a5fe96b28
commit 3c4ec82617

View File

@ -887,6 +887,11 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
{
x = y = 0;
}
else if (border && g_config.window_rect.top == -32000 && y < 0)
{
/* Make window titlebar visible if window does not fit into screen */
y = real_GetSystemMetrics(SM_CYCAPTION) + real_GetSystemMetrics(SM_CYSIZEFRAME);
}
if (util_is_minimized(g_ddraw->hwnd))
real_ShowWindow(g_ddraw->hwnd, SW_RESTORE);