From: Guus Sliepen Date: Mon, 29 Aug 2011 20:03:42 +0000 (+0200) Subject: Tell SDL to use double buffering if available. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e97dfcf010d2404f66635978bcb70d334e348f1e;p=quix0rs-blobwars.git Tell SDL to use double buffering if available. --- diff --git a/src/init.cpp b/src/init.cpp index 4ed644a..bf5fa20 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -280,11 +280,11 @@ void initSystem() if (!engine.fullScreen) { - graphics.screen = SDL_SetVideoMode(640, 480, 0, SDL_HWPALETTE); + graphics.screen = SDL_SetVideoMode(640, 480, 0, SDL_DOUBLEBUF | SDL_HWPALETTE); } else { - graphics.screen = SDL_SetVideoMode(640, 480, 0, SDL_HWPALETTE | SDL_FULLSCREEN); + graphics.screen = SDL_SetVideoMode(640, 480, 0, SDL_DOUBLEBUF | SDL_HWPALETTE | SDL_FULLSCREEN); } if (graphics.screen == NULL)