aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorEugene Sandulenko2016-04-10 15:09:14 +0200
committerEugene Sandulenko2016-04-10 15:09:14 +0200
commita7930f2af7b8bd525d3a01971fdcf3aea646fc96 (patch)
treebda0bc6733cefa3c83728e4730e43294c8b7ffda /backends
parent39dc1dd2e1c436b4cc75367c0f6a31452334930e (diff)
downloadscummvm-rg350-a7930f2af7b8bd525d3a01971fdcf3aea646fc96.tar.gz
scummvm-rg350-a7930f2af7b8bd525d3a01971fdcf3aea646fc96.tar.bz2
scummvm-rg350-a7930f2af7b8bd525d3a01971fdcf3aea646fc96.zip
GCW0: Enable triple buffering
Diffstat (limited to 'backends')
-rw-r--r--backends/graphics/surfacesdl/surfacesdl-graphics.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index 21345515bc..f00e6e781f 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -812,7 +812,11 @@ bool SurfaceSdlGraphicsManager::loadGFXMode() {
#endif
_hwscreen = SDL_SetVideoMode(_videoMode.hardwareWidth, _videoMode.hardwareHeight, 16,
+#ifndef GCW0
_videoMode.fullscreen ? (SDL_FULLSCREEN|SDL_SWSURFACE) : SDL_SWSURFACE
+#else
+ SDL_HWSURFACE | SDL_TRIPLEBUF
+#endif
);
}
@@ -1258,7 +1262,11 @@ void SurfaceSdlGraphicsManager::internUpdateScreen() {
// Finally, blit all our changes to the screen
if (!_displayDisabled) {
+#ifndef GCW0
SDL_UpdateRects(_hwscreen, _numDirtyRects, _dirtyRectList);
+#else
+ SDL_Flip(_hwscreen);
+#endif
}
}