make sure window titlebar is visible if window bigger than screen
This commit is contained in:
parent
1a5fe96b28
commit
3c4ec82617
1 changed files with 5 additions and 0 deletions
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;
|
||||
}
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue