Skip to content

Commit 9e75c53

Browse files
committed
fix SW renderer frozen after coming back from Alt/Tab (fullscreen mode).
close #1053
1 parent 9c5ba84 commit 9e75c53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Gui/SDLRunner.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,10 @@ namespace spades {
525525
}
526526
#endif
527527

528+
if (rtype == RendererType::SW) {
529+
SDL_SetHint("SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS", "0");
530+
}
531+
528532
RunClientLoop(renderer.GetPointerOrNull(), audio.GetPointerOrNull());
529533

530534
// `SDL_Window` and its associated resources will be inaccessible

0 commit comments

Comments
 (0)