diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2017-04-05 17:58:37 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2017-04-05 17:58:37 +0000 |
commit | 01726beb983ffa66b16faa8a2b9ad856a43c0860 (patch) | |
tree | 6b3cfc91b70249e55cc6b5f96854452fc6e6c0bb /games/quake2lnx/files | |
parent | 9bb393eb6eeb20eea4999b9ac6abb39a6305bfeb (diff) | |
download | ports-01726beb983ffa66b16faa8a2b9ad856a43c0860.tar.gz ports-01726beb983ffa66b16faa8a2b9ad856a43c0860.zip |
Notes
Diffstat (limited to 'games/quake2lnx/files')
-rw-r--r-- | games/quake2lnx/files/patch-src_linux_rw__x11.c | 9 | ||||
-rw-r--r-- | games/quake2lnx/files/patch-src_ref__candygl_qgl.h | 22 | ||||
-rw-r--r-- | games/quake2lnx/files/patch-src_ref__gl_qgl.h | 13 |
3 files changed, 44 insertions, 0 deletions
diff --git a/games/quake2lnx/files/patch-src_linux_rw__x11.c b/games/quake2lnx/files/patch-src_linux_rw__x11.c index 72144026f5a4..52b74502d5c0 100644 --- a/games/quake2lnx/files/patch-src_linux_rw__x11.c +++ b/games/quake2lnx/files/patch-src_linux_rw__x11.c @@ -1,5 +1,14 @@ --- src/linux/rw_x11.c.orig Wed Oct 9 03:54:25 2002 +++ src/linux/rw_x11.c Mon Jun 16 23:19:40 2003 +@@ -151,7 +151,7 @@ + int config_notify_height; + + typedef unsigned short PIXEL16; +-typedef unsigned long PIXEL24; ++typedef unsigned int PIXEL24; + #ifdef REDBLUE + static PIXEL16 st2d_8to16table_s[2][256]; + static PIXEL24 st2d_8to24table_s[2][256]; @@ -446,7 +446,7 @@ qboolean OpenJoystick(cvar_t *joy_dev) { int i, err; diff --git a/games/quake2lnx/files/patch-src_ref__candygl_qgl.h b/games/quake2lnx/files/patch-src_ref__candygl_qgl.h new file mode 100644 index 000000000000..01aedbf48603 --- /dev/null +++ b/games/quake2lnx/files/patch-src_ref__candygl_qgl.h @@ -0,0 +1,22 @@ +--- src/ref_candygl/qgl.h.orig 2002-06-17 20:03:07 UTC ++++ src/ref_candygl/qgl.h +@@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place - Suit + + #include <GL/gl.h> + +-#ifdef __linux__ ++#ifndef _WIN32 + //#include <GL/fxmesa.h> + #include <GL/glx.h> + #endif +@@ -428,9 +428,7 @@ extern BOOL ( WINAPI * qwglSwapIntervalE + extern BOOL ( WINAPI * qwglGetDeviceGammaRampEXT ) ( unsigned char *pRed, unsigned char *pGreen, unsigned char *pBlue ); + extern BOOL ( WINAPI * qwglSetDeviceGammaRampEXT ) ( const unsigned char *pRed, const unsigned char *pGreen, const unsigned char *pBlue ); + +-#endif +- +-#ifdef __linux__ ++#else + + // local function in dll + extern void *qwglGetProcAddress(char *symbol); diff --git a/games/quake2lnx/files/patch-src_ref__gl_qgl.h b/games/quake2lnx/files/patch-src_ref__gl_qgl.h new file mode 100644 index 000000000000..e9164445d3b6 --- /dev/null +++ b/games/quake2lnx/files/patch-src_ref__gl_qgl.h @@ -0,0 +1,13 @@ +--- src/ref_gl/qgl.h.orig 2004-05-02 19:36:53 UTC ++++ src/ref_gl/qgl.h +@@ -426,9 +426,7 @@ extern BOOL ( WINAPI * qwglSwapIntervalE + extern BOOL ( WINAPI * qwglGetDeviceGammaRampEXT ) ( unsigned char *pRed, unsigned char *pGreen, unsigned char *pBlue ); + extern BOOL ( WINAPI * qwglSetDeviceGammaRampEXT ) ( const unsigned char *pRed, const unsigned char *pGreen, const unsigned char *pBlue ); + +-#endif +- +-#ifdef __linux__ ++#else + + // local function in dll + extern void *qwglGetProcAddress(char *symbol); |