parent
2a4d02a9b8
commit
d26ed7f39f
|
@ -127,7 +127,9 @@ static bool CreateDDraw()
|
|||
HRESULT status;
|
||||
{
|
||||
GUID FAR *guid;
|
||||
if ((GetIsFullscreen() && directDrawModeFullscreen == DIRECTDRAW_MODE_SOFTWARE) || (!GetIsFullscreen() && directDrawModeWindowed == DIRECTDRAW_MODE_SOFTWARE))
|
||||
// use fullscreenDesired to determine fullscreen state - this func is called before mode is
|
||||
// applied, value returned from GetIsFullscreen() would be outdated
|
||||
if ((fullscreenDesired && directDrawModeFullscreen == DIRECTDRAW_MODE_SOFTWARE) || (!fullscreenDesired && directDrawModeWindowed == DIRECTDRAW_MODE_SOFTWARE))
|
||||
guid = (GUID FAR *)DDCREATE_EMULATIONONLY;
|
||||
else
|
||||
guid = NULL;
|
||||
|
|
Loading…
Reference in New Issue