Skip to content

Commit

Permalink
Fix TTF output screen blanked when window is minimized on Windows SDL1
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 committed Sep 13, 2023
1 parent 61da2e6 commit b2f27f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/sdlmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3756,12 +3756,12 @@ static void GUI_StartUp() {
else if (output == "ttf")
{
LOG_MSG("SDL(sdlmain.cpp): TTF activated");
#if C_DIRECT3D
if(!init_output) OUTPUT_DIRECT3D_Select();
#if defined(WIN32) && !defined(C_SDL2)
if(!init_output) OUTPUT_SURFACE_Select(); // Initialize screen by output=surface for Windows for SDL1
#elif C_OPENGL
if(!init_output) OUTPUT_OPENGL_Select(GLBilinear); // Initialize screen before switching to TTF (required for macOS builds)
#else
OUTPUT_SURFACE_Select();
if(!init_output) OUTPUT_SURFACE_Select();
#endif // C_DIRECT3D || C_OPENGL
OUTPUT_TTF_Select(0);
init_output = true;
Expand Down

0 comments on commit b2f27f2

Please sign in to comment.