when resetting the D3D device, use the preferred video mode and not the current desktop mode. This fixes "Win98, full-screen, alt-tab away, alt-tab back and the game is running fullscreen at the desktop video mode"
This commit is contained in:
@@ -669,16 +669,16 @@ bool RageDisplay_D3D::BeginFrame()
|
||||
case D3DERR_DEVICELOST:
|
||||
return false;
|
||||
case D3DERR_DEVICENOTRESET:
|
||||
{
|
||||
bool bIgnore = false;
|
||||
VideoModeParams params;
|
||||
GraphicsWindow::GetParams( params );
|
||||
{
|
||||
bool bIgnore = false;
|
||||
VideoModeParams params;
|
||||
GetPreferredVideoModeParams( params );
|
||||
|
||||
CString sError = SetVideoMode( params, bIgnore );
|
||||
if( sError != "" )
|
||||
RageException::Throw( sError );
|
||||
break;
|
||||
}
|
||||
CString sError = SetVideoMode( params, bIgnore );
|
||||
if( sError != "" )
|
||||
RageException::Throw( sError );
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user