mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-26 10:29:23 +01:00
remove menu in fullscreen/borderless modes
This commit is contained in:
parent
1f931870d2
commit
6101e34ddd
6
src/dd.c
6
src/dd.c
@ -724,6 +724,9 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
|
|||||||
real_GetWindowLongA(
|
real_GetWindowLongA(
|
||||||
g_ddraw->hwnd,
|
g_ddraw->hwnd,
|
||||||
GWL_STYLE) & ~(WS_CAPTION | WS_THICKFRAME | WS_MINIMIZE | WS_MAXIMIZE | WS_SYSMENU));
|
GWL_STYLE) & ~(WS_CAPTION | WS_THICKFRAME | WS_MINIMIZE | WS_MAXIMIZE | WS_SYSMENU));
|
||||||
|
|
||||||
|
if (GetMenu(g_ddraw->hwnd))
|
||||||
|
SetMenu(g_ddraw->hwnd, NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -788,6 +791,9 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (GetMenu(g_ddraw->hwnd))
|
||||||
|
SetMenu(g_ddraw->hwnd, NULL);
|
||||||
|
|
||||||
LONG style = real_GetWindowLongA(g_ddraw->hwnd, GWL_STYLE);
|
LONG style = real_GetWindowLongA(g_ddraw->hwnd, GWL_STYLE);
|
||||||
|
|
||||||
DWORD swp_flags = SWP_SHOWWINDOW;
|
DWORD swp_flags = SWP_SHOWWINDOW;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user