mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 14:14:47 +01:00
switch to windowed mode on error
This commit is contained in:
parent
3f93982306
commit
1303d105f3
@ -962,7 +962,8 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
|
||||
if (!Direct3D9Active && ChangeDisplaySettings(&This->render.mode, CDS_FULLSCREEN) != DISP_CHANGE_SUCCESSFUL)
|
||||
{
|
||||
This->render.run = FALSE;
|
||||
return DDERR_INVALIDMODE;
|
||||
This->windowed = TRUE;
|
||||
return ddraw_SetDisplayMode(This, width, height, bpp);
|
||||
}
|
||||
|
||||
if (ddraw->wine)
|
||||
|
Loading…
x
Reference in New Issue
Block a user