From d3676574df19bd8982e5cd3ab10787e69370bf0f Mon Sep 17 00:00:00 2001 From: Sander van Dijk Date: Sun, 3 Mar 2013 15:01:14 +0000 Subject: [PATCH] gl_vidsdl.c: minor cleanup (lets not hijack the SDL_ prefix) git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@840 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/gl_vidsdl.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Quake/gl_vidsdl.c b/Quake/gl_vidsdl.c index 4d2c0886..e5be69ff 100644 --- a/Quake/gl_vidsdl.c +++ b/Quake/gl_vidsdl.c @@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MAXWIDTH 10000 #define MAXHEIGHT 10000 -#define SDL_DEFAULT_FLAGS SDL_OPENGL +#define DEFAULT_SDL_FLAGS SDL_OPENGL typedef struct { int width; @@ -195,7 +195,7 @@ VID_ValidMode */ static qboolean VID_ValidMode (int width, int height, int bpp, qboolean fullscreen) { - Uint32 flags = SDL_DEFAULT_FLAGS; + Uint32 flags = DEFAULT_SDL_FLAGS; if (width < 320) return false; @@ -229,7 +229,7 @@ VID_SetMode static int VID_SetMode (int width, int height, int bpp, qboolean fullscreen) { int temp; - Uint32 flags = SDL_DEFAULT_FLAGS; + Uint32 flags = DEFAULT_SDL_FLAGS; char caption[50]; if (fullscreen) @@ -821,7 +821,7 @@ static void VID_InitModelist (void) format.palette = NULL; // enumerate fullscreen modes - flags = SDL_DEFAULT_FLAGS | SDL_FULLSCREEN; + flags = DEFAULT_SDL_FLAGS | SDL_FULLSCREEN; for (i = 0; i < (int)(sizeof(bpps)/sizeof(bpps[0])); i++) { if (nummodes >= MAX_MODE_LIST) @@ -871,7 +871,7 @@ VID_Init */ void VID_Init (void) { - static char vid_center[32] = "SDL_VIDEO_CENTERED=center"; + static char vid_center[] = "SDL_VIDEO_CENTERED=center"; const SDL_VideoInfo *info; int width, height, bpp; qboolean fullscreen; @@ -1222,7 +1222,7 @@ static void VID_Menu_ChooseNextMode (int dir) ================ VID_Menu_ChooseNextBpp -chooses next bpp in order, then updates vid_bpp cvar, then updates refreshrate list +chooses next bpp in order, then updates vid_bpp cvar ================ */ static void VID_Menu_ChooseNextBpp (int dir)