From 3affe2eb2a4f4d1f7f4f8f31fdc3129a098673fd Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 20 Jun 2021 00:23:13 +0200 Subject: [PATCH] Fix SDL1 builds --- Source/utils/display.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/utils/display.cpp b/Source/utils/display.cpp index ebe8973ef..436d85dd4 100644 --- a/Source/utils/display.cpp +++ b/Source/utils/display.cpp @@ -137,14 +137,14 @@ bool SpawnWindow(const char *lpWindowName) SDL_setenv("SDL_AUDIODRIVER", "winmm", /*overwrite=*/false); #endif - SDL_SetHint(SDL_HINT_ORIENTATIONS, "LandscapeLeft LandscapeRight"); - int initFlags = SDL_INIT_VIDEO | SDL_INIT_JOYSTICK; #ifndef NOSOUND initFlags |= SDL_INIT_AUDIO; #endif #ifndef USE_SDL1 initFlags |= SDL_INIT_GAMECONTROLLER; + + SDL_SetHint(SDL_HINT_ORIENTATIONS, "LandscapeLeft LandscapeRight"); #endif if (SDL_Init(initFlags) <= -1) { ErrSdl();