diff options
author | Torbjörn Andersson | 2014-02-25 00:09:16 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2014-02-25 00:09:16 +0100 |
commit | da57eeeeb2548bd872b8b8fe7f3be040382b3b9b (patch) | |
tree | 57078870484b62b1f2aad7e2837e5e95cf90e658 /backends/graphics/opengl | |
parent | e5a9d644ea7ced7c04962e18b0279f4e0e5cb103 (diff) | |
download | scummvm-rg350-da57eeeeb2548bd872b8b8fe7f3be040382b3b9b.tar.gz scummvm-rg350-da57eeeeb2548bd872b8b8fe7f3be040382b3b9b.tar.bz2 scummvm-rg350-da57eeeeb2548bd872b8b8fe7f3be040382b3b9b.zip |
OPENGL: Fix building with --disable-16bit
Diffstat (limited to 'backends/graphics/opengl')
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index 0a034128fe..cbd06e9161 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -278,11 +278,15 @@ OSystem::TransactionError OpenGLGraphicsManager::endGFXTransaction() { _gameScreen->allocate(_currentState.gameWidth, _currentState.gameHeight); _gameScreen->enableLinearFiltering(_currentState.graphicsMode == GFX_LINEAR); // We fill the screen to all black or index 0 for CLUT8. +#ifdef USE_RGB_COLOR if (_currentState.gameFormat.bytesPerPixel == 1) { _gameScreen->fill(0); } else { _gameScreen->fill(_gameScreen->getSurface()->format.RGBToColor(0, 0, 0)); } +#else + _gameScreen->fill(0); +#endif } // Update our display area and cursor scaling. This makes sure we pick up |