1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-25 10:07:47 +01:00

remove some devmode fullscreen checks since it works perfectly in windowed mode now

This commit is contained in:
FunkyFr3sh 2018-11-23 15:01:36 +01:00
parent 4cf4e55b87
commit 3b94b2f1d9

View File

@ -520,8 +520,6 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
if (!This->windowed)
{
// Making sure the chosen resolution is valid
if(!This->devmode)
{
int oldWidth = This->render.width;
int oldHeight = This->render.height;
@ -569,7 +567,6 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
}
}
}
}
if (!ddraw->handlemouse)
This->boxing = maintas = FALSE;
@ -653,14 +650,11 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
if (This->renderer == render_d3d9_main)
InitDirect3D9();
if(!This->devmode)
{
if (!Direct3D9Active && ChangeDisplaySettings(&This->render.mode, CDS_FULLSCREEN) != DISP_CHANGE_SUCCESSFUL)
{
This->render.run = FALSE;
return DDERR_INVALIDMODE;
}
}
if (ddraw->wine)
SetWindowLong(This->hWnd, GWL_STYLE, GetWindowLong(This->hWnd, GWL_STYLE) | WS_MINIMIZEBOX);