#40 disable window frame
This commit is contained in:
parent
4e6ecfe37c
commit
f58bc7117f
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue