summarylogtreecommitdiffstats
path: root/fix_build_with_sdl2_2.0.10.patch
diff options
context:
space:
mode:
Diffstat (limited to 'fix_build_with_sdl2_2.0.10.patch')
-rw-r--r--fix_build_with_sdl2_2.0.10.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/fix_build_with_sdl2_2.0.10.patch b/fix_build_with_sdl2_2.0.10.patch
new file mode 100644
index 000000000000..1f859e74d1ec
--- /dev/null
+++ b/fix_build_with_sdl2_2.0.10.patch
@@ -0,0 +1,16 @@
+diff --git a/src/platform/julius.c b/src/platform/julius.c
+index 99d8a66a..03669d3d 100644
+--- a/src/platform/julius.c
++++ b/src/platform/julius.c
+@@ -368,7 +368,10 @@ static int init_sdl(void)
+ SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Could not initialize SDL: %s", SDL_GetError());
+ return 0;
+ }
+-#if SDL_VERSION_ATLEAST(2, 0, 4)
++#if SDL_VERSION_ATLEAST(2, 0, 10)
++ SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0");
++ SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
++#elif SDL_VERSION_ATLEAST(2, 0, 4)
+ SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "1");
+ #endif
+ SDL_Log("SDL initialized");