From 63589d31bff9ccd1d46c2c693f2cd68ef25b5305 Mon Sep 17 00:00:00 2001 From: Per Inge Mathisen Date: Thu, 20 Aug 2009 22:33:14 +0000 Subject: [PATCH] The following patch simplifies the screenInitialise function, by removing some superfluous flags. This closes ticket:102 by EvilGuru, committing only the substantial parts to avoid merge collisions with other trees. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8023 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/ivis_opengl/screen.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/ivis_opengl/screen.c b/lib/ivis_opengl/screen.c index 20bbe8443..a650a51b9 100644 --- a/lib/ivis_opengl/screen.c +++ b/lib/ivis_opengl/screen.c @@ -96,19 +96,6 @@ BOOL screenInitialise( // The flags to pass to SDL_SetVideoMode. video_flags = SDL_OPENGL; // Enable OpenGL in SDL. video_flags |= SDL_ANYFORMAT; // Don't emulate requested BPP if not available. - video_flags |= SDL_HWPALETTE; // Store the palette in hardware. - - // This checks to see if surfaces can be stored in memory. - if (video_info->hw_available) { - video_flags |= SDL_HWSURFACE; - } else { - video_flags |= SDL_SWSURFACE; - } - - // This checks if hardware blits can be done. - if (video_info->blit_hw) { - video_flags |= SDL_HWACCEL; - } if (fullScreen) { video_flags |= SDL_FULLSCREEN;