From e97dfcf010d2404f66635978bcb70d334e348f1e Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 29 Aug 2011 22:03:42 +0200 Subject: [PATCH] Tell SDL to use double buffering if available. --- src/init.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5