Date: Mon, 5 Aug 2019 14:19:52 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r508175 - in head/games/julius: . files Message-ID: <201908051419.x75EJqcQ071816@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Mon Aug 5 14:19:52 2019 New Revision: 508175 URL: https://svnweb.freebsd.org/changeset/ports/508175 Log: games/julius: fix build with SDL 2.0.10 SDL 2.0.10 removed SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH and introduced SDL_HINT_MOUSE_TOUCH_EVENTS and SDL_HINT_TOUCH_MOUSE_EVENTS. Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D21148 Added: head/games/julius/files/patch-src_platform_julius.c (contents, props changed) Modified: head/games/julius/Makefile Modified: head/games/julius/Makefile ============================================================================== --- head/games/julius/Makefile Mon Aug 5 14:19:52 2019 (r508174) +++ head/games/julius/Makefile Mon Aug 5 14:19:52 2019 (r508175) @@ -13,8 +13,6 @@ COMMENT= Open source re-implementation of Caesar III LICENSE= GPLv3 -BROKEN= use of undeclared identifier 'SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH' - USES= cmake sdl USE_GITHUB= yes Added: head/games/julius/files/patch-src_platform_julius.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/julius/files/patch-src_platform_julius.c Mon Aug 5 14:19:52 2019 (r508175) @@ -0,0 +1,12 @@ +--- src/platform/julius.c.orig 2019-08-03 16:50:03 UTC ++++ src/platform/julius.c +@@ -369,7 +369,8 @@ static int init_sdl(void) + return 0; + } + #if SDL_VERSION_ATLEAST(2, 0, 4) +- SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "1"); ++ SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0"); ++ SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0"); + #endif + SDL_Log("SDL initialized"); + return 1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908051419.x75EJqcQ071816>