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

#40 disable window frame

This commit is contained in:
FunkyFr3sh 2020-09-17 22:44:54 +02:00
parent 4e6ecfe37c
commit f58bc7117f

View File

@ -915,6 +915,13 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
}
else
{
LONG style = GetWindowLong(This->hWnd, GWL_STYLE);
if ((style & WS_CAPTION))
{
real_SetWindowLongA(This->hWnd, GWL_STYLE, style & ~(WS_CAPTION | WS_THICKFRAME | WS_MINIMIZE | WS_MAXIMIZE | WS_SYSMENU));
}
if (This->renderer == render_d3d9_main)
InitDirect3D9();