]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Tell SDL to use double buffering if available.
authorGuus Sliepen <guus@debian.org>
Mon, 29 Aug 2011 20:03:42 +0000 (22:03 +0200)
committerGuus Sliepen <guus@debian.org>
Mon, 29 Aug 2011 20:04:03 +0000 (22:04 +0200)
src/init.cpp

index 4ed644a0ff3cd04891ef3fa57295048b43238db1..bf5fa2031587b5ad6bc4b6688e14da6038994109 100644 (file)
@@ -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)