Skip to content

Commit

Permalink
fix SW renderer frozen after coming back from Alt/Tab (fullscreen mode).
Browse files Browse the repository at this point in the history
close #1053
  • Loading branch information
devnexen committed Jan 14, 2023
1 parent 9c5ba84 commit 9e75c53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Gui/SDLRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,10 @@ namespace spades {
}
#endif

if (rtype == RendererType::SW) {
SDL_SetHint("SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS", "0");
}

RunClientLoop(renderer.GetPointerOrNull(), audio.GetPointerOrNull());

// `SDL_Window` and its associated resources will be inaccessible
Expand Down

0 comments on commit 9e75c53

Please sign in to comment.