summaryrefslogtreecommitdiff
path: root/games-rpg/freedink/files/freedink-109.6-sdl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games-rpg/freedink/files/freedink-109.6-sdl.patch')
-rw-r--r--games-rpg/freedink/files/freedink-109.6-sdl.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/games-rpg/freedink/files/freedink-109.6-sdl.patch b/games-rpg/freedink/files/freedink-109.6-sdl.patch
new file mode 100644
index 000000000000..f00735d7b377
--- /dev/null
+++ b/games-rpg/freedink/files/freedink-109.6-sdl.patch
@@ -0,0 +1,20 @@
+For newer sdl2 and sdl2-ttf
+https://lists.gnu.org/archive/html/bug-freedink/2019-08/msg00000.html
+https://lists.gnu.org/archive/html/bug-freedink/2022-07/msg00001.html
+--- a/src/gfx_fonts.cpp
++++ b/src/gfx_fonts.cpp
+@@ -295,6 +295,6 @@
+ {
+- char *familyname = TTF_FontFaceFamilyName(font);
++ const char *familyname = TTF_FontFaceFamilyName(font);
+ if(familyname)
+ log_info("The family name of the face in the font is: %s", familyname);
+- char *stylename = TTF_FontFaceStyleName(font);
++ const char *stylename = TTF_FontFaceStyleName(font);
+ if(stylename)
+--- a/src/input.cpp
++++ b/src/input.cpp
+@@ -93,3 +93,2 @@
+ // fake mouse events often are de-centered
+- SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "0");
+