Skip to content

Commit

Permalink
GCW0: Enable triple buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Apr 10, 2016
1 parent 39dc1dd commit a7930f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backends/graphics/surfacesdl/surfacesdl-graphics.cpp
Expand Up @@ -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
);
}

Expand Down Expand Up @@ -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
}
}

Expand Down

0 comments on commit a7930f2

Please sign in to comment.