From 94fa772ce62472e6cbba50b7be8fba29c50bbb6b Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 9 Dec 2021 17:42:48 +0100 Subject: [PATCH] Fix SDL < 2.0.10 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 1fe846deb..9507d1eef 100644 --- a/Source/utils/display.cpp +++ b/Source/utils/display.cpp @@ -155,10 +155,10 @@ bool SpawnWindow(const char *lpWindowName) scePowerSetArmClockFrequency(444); #endif -#if SDL_VERSION_ATLEAST(2, 0, 6) -#ifdef __vita__ +#if SDL_VERSION_ATLEAST(2, 0, 6) && defined(__vita__) SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0"); #endif +#if SDL_VERSION_ATLEAST(2, 0, 10) SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0"); #endif