Skip to content

Commit

Permalink
Fixed crash game, when trying recovery mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tx00100xt committed Jun 2, 2022
1 parent 9f0d60c commit f0f520d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SamTFE/Sources/SeriousSam/SeriousSam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,8 @@ void StartNewMode( enum GfxAPIType eGfxAPI, INDEX iAdapter, PIX pixSizeI, PIX pi
eColorDepth = (DisplayDepth)aDefaultModes[iMode][0];
eGfxAPI = (GfxAPIType) aDefaultModes[iMode][1];
iAdapter = aDefaultModes[iMode][2];
// set sam_iGfxAPI for SDL_CreateWindow
sam_iGfxAPI = eGfxAPI;
CPrintF(TRANSV("\nTrying recovery mode %d...\n"), iMode);
bSuccess = TryToSetDisplayMode( eGfxAPI, iAdapter, pixSizeI, pixSizeJ, aspSizeI, aspSizeJ, eColorDepth, bFullScreenMode);
if( bSuccess) break;
Expand Down
2 changes: 2 additions & 0 deletions SamTSE/Sources/SeriousSam/SeriousSam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,8 @@ void StartNewMode( enum GfxAPIType eGfxAPI, INDEX iAdapter, PIX pixSizeI, PIX pi
eColorDepth = (DisplayDepth)aDefaultModes[iMode][0];
eGfxAPI = (GfxAPIType) aDefaultModes[iMode][1];
iAdapter = aDefaultModes[iMode][2];
// set sam_iGfxAPI for SDL_CreateWindow
sam_iGfxAPI = eGfxAPI;
CPrintF(TRANSV("\nTrying recovery mode %d...\n"), iMode);
bSuccess = TryToSetDisplayMode( eGfxAPI, iAdapter, pixSizeI, pixSizeJ, aspSizeI, aspSizeJ, eColorDepth, bFullScreenMode);
if( bSuccess) break;
Expand Down

0 comments on commit f0f520d

Please sign in to comment.