gentoo-ebuilds/games-rpg/freedink/files/freedink-109.6-sdl.patch
Ionen Wolkens 92561523ab
games-rpg/freedink: add 109.6
Now uses SDL2.

ebuild changes:
* EAPI6->8
* fix licenses wrt bug #880183 (minus public-domain, binreloc.c
  is not in this version)
* update HOMEPAGE, old domain seems dead
* tentatively drop -O? -> -O0 replace-flags, many changes including
  using C++ and hopefully is not relevant anymore (or at least, I can
  load save games even with -O3)
  -> also drop filter-flags, it had no arguments and was no-op
    (likely was meant to be strip-flags)
* change windres workaround to not need a patch

(note it gives a misleading error about lacking Ogg support, but
if look at debug output it successfully finds Ogg differently)

Closes: https://bugs.gentoo.org/880183
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2022-11-08 00:36:54 -05:00

20 lines
737 B
Diff

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");