From a36ec531d21325b4be4538f28ca3ba7a9563e433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Thu, 26 Aug 2021 20:43:59 +0200 Subject: groups/231.native_packages_etc.group: adds quake v1.0.9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ørjan Malde --- patches/sdlquake-1.0.9.local.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 patches/sdlquake-1.0.9.local.patch (limited to 'patches/sdlquake-1.0.9.local.patch') diff --git a/patches/sdlquake-1.0.9.local.patch b/patches/sdlquake-1.0.9.local.patch new file mode 100644 index 00000000..b3f223b4 --- /dev/null +++ b/patches/sdlquake-1.0.9.local.patch @@ -0,0 +1,25 @@ +diff -ru sdlquake-1.0.9.orig/draw.c sdlquake-1.0.9/draw.c +--- sdlquake-1.0.9.orig/draw.c 1999-12-22 00:53:24.000000000 +0100 ++++ sdlquake-1.0.9/draw.c 2021-08-26 20:17:34.381572611 +0200 +@@ -557,6 +557,9 @@ + #elif defined(__linux__) + sprintf (ver, "(Linux Quake %2.2f) %4.2f", (float)LINUX_VERSION, (float)VERSION); + dest = conback->data + 320*186 + 320 - 11 - 8*strlen(ver); ++#elif defined(__midipix__) ++ sprintf (ver, "(Midipix Quake) %4.2f", (float)VERSION); ++ dest = conback->data + 320*186 + 320 - 11 -8*strlen(ver); + #else + dest = conback->data + 320 - 43 + 320*186; + sprintf (ver, "%4.2f", VERSION); +diff -ru sdlquake-1.0.9.orig/net.h sdlquake-1.0.9/net.h +--- sdlquake-1.0.9.orig/net.h 1999-12-22 00:54:20.000000000 +0100 ++++ sdlquake-1.0.9/net.h 2021-08-26 20:15:24.072736300 +0200 +@@ -238,7 +238,7 @@ + extern int hostCacheCount; + extern hostcache_t hostcache[HOSTCACHESIZE]; + +-#if !defined(_WIN32 ) && !defined (__linux__) && !defined (__sun__) ++#if !defined(_WIN32 ) && !defined (__linux__) && !defined(__midipix__) && !defined (__sun__) + #ifndef htonl + extern unsigned long htonl (unsigned long hostlong); + #endif -- cgit v1.2.3