aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorJohannes Schickel2014-02-11 11:07:38 +0100
committerJohannes Schickel2014-02-11 11:10:49 +0100
commit16898486fa28cb428183d94552f2c9884a718c9f (patch)
treec659a66ff7059265a107078300c4a2b592949cf0 /backends
parent1f4638fe823d87ca6b45a79779aff9712e06ec58 (diff)
downloadscummvm-rg350-16898486fa28cb428183d94552f2c9884a718c9f.tar.gz
scummvm-rg350-16898486fa28cb428183d94552f2c9884a718c9f.tar.bz2
scummvm-rg350-16898486fa28cb428183d94552f2c9884a718c9f.zip
OPENGL: Properly setup full game palette on video mode change if required.
Diffstat (limited to 'backends')
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index c60069f6df..3321689366 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -272,7 +272,7 @@ OSystem::TransactionError OpenGLGraphicsManager::endGFXTransaction() {
#endif
assert(_gameScreen);
if (_gameScreen->hasPalette()) {
- _gameScreen->setPalette(0, 255, _gamePalette);
+ _gameScreen->setPalette(0, 256, _gamePalette);
}
_gameScreen->allocate(_currentState.gameWidth, _currentState.gameHeight);