mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
make sure window titlebar is visible if window bigger than screen
This commit is contained in:
parent
1a5fe96b28
commit
3c4ec82617
5
src/dd.c
5
src/dd.c
@ -887,6 +887,11 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
|
|||||||
{
|
{
|
||||||
x = y = 0;
|
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))
|
if (util_is_minimized(g_ddraw->hwnd))
|
||||||
real_ShowWindow(g_ddraw->hwnd, SW_RESTORE);
|
real_ShowWindow(g_ddraw->hwnd, SW_RESTORE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user