projects
/
quix0rs-blobwars.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d312b6
)
Tell SDL to use double buffering if available.
author
Guus Sliepen
<guus@debian.org>
Mon, 29 Aug 2011 20:03:42 +0000
(22:03 +0200)
committer
Guus Sliepen
<guus@debian.org>
Mon, 29 Aug 2011 20:04:03 +0000
(22:04 +0200)
src/init.cpp
patch
|
blob
|
history
diff --git
a/src/init.cpp
b/src/init.cpp
index 4ed644a0ff3cd04891ef3fa57295048b43238db1..bf5fa2031587b5ad6bc4b6688e14da6038994109 100644
(file)
--- 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)