From c77c69d488a8ef530380093b725268fa3ed64ebb Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 22 Nov 2014 12:44:06 +0000 Subject: [PATCH] Fix MinGW build. DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@4754 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/sdlayer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index 1fcb5d60e..325a4e109 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -75,7 +75,7 @@ static SDL_Texture *sdl_texture=NULL; static SDL_Renderer *sdl_renderer=NULL; #endif -struct +struct glattribs { SDL_GLattr attr; int32_t value; @@ -196,7 +196,6 @@ int32_t wm_msgbox(const char *name, const char *fmt, ...) int32_t wm_ynbox(const char *name, const char *fmt, ...) { char buf[2048]; - char c; va_list va; UNREFERENCED_PARAMETER(name); @@ -1320,9 +1319,6 @@ void setvideomode_sdlcommonpost(int32_t x, int32_t y, int32_t c, int32_t fs, int int32_t setvideomode(int32_t x, int32_t y, int32_t c, int32_t fs) { int32_t regrab = 0, ret; -#ifdef USE_OPENGL - static int32_t warnonce = 0; -#endif ret = setvideomode_sdlcommon(&x, &y, c, fs, ®rab); if (ret != 1) return ret; @@ -1706,7 +1702,11 @@ int32_t handleevents_sdlcommon(SDL_Event *ev) mousex += ev->motion.xrel; mousey += ev->motion.yrel; #if !defined DEBUGGINGAIDS || MY_DEVELOPER_ID == 805120924 - SDL_WarpMouse(xdim >> 1, ydim >> 1); +# if SDL_MAJOR_VERSION==1 + SDL_WarpMouse(xdim>>1, ydim>>1); +# else + SDL_WarpMouseInWindow(sdl_window, xdim>>1, ydim>>1); +# endif #endif } }