From 901d9aa43567e0416db0df008bb36e1c525b3080 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 9 Dec 2021 16:50:47 +0100 Subject: [PATCH] Fix SDL < 2.0.6 builds --- Source/utils/display.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/utils/display.cpp b/Source/utils/display.cpp index 433b93959..1fe846deb 100644 --- a/Source/utils/display.cpp +++ b/Source/utils/display.cpp @@ -155,11 +155,13 @@ bool SpawnWindow(const char *lpWindowName) scePowerSetArmClockFrequency(444); #endif -#if SDL_VERSION_ATLEAST(2, 0, 6) && defined(__vita__) +#if SDL_VERSION_ATLEAST(2, 0, 6) +#ifdef __vita__ SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0"); #endif + SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0"); +#endif -SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0"); #if defined(_WIN32) && !defined(USE_SDL1) // The default WASAPI backend causes distortions