aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordhewg2011-02-26 08:55:55 +0100
committerdhewg2011-02-26 08:56:49 +0100
commitf26707e353d5bedac683777c5490b2bc0d110f2b (patch)
tree2566c52f265fcf57a839b222664500ac157b5365
parent8571083700e8bc9c81d05bb17e55b49dcd0771e7 (diff)
downloadscummvm-rg350-f26707e353d5bedac683777c5490b2bc0d110f2b.tar.gz
scummvm-rg350-f26707e353d5bedac683777c5490b2bc0d110f2b.tar.bz2
scummvm-rg350-f26707e353d5bedac683777c5490b2bc0d110f2b.zip
OPENGL: Fix 16bit cursors
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 8299745776..17a77f68ef 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -560,7 +560,8 @@ void OpenGLGraphicsManager::setMouseCursor(const byte *buf, uint w, uint h, int
#endif
// Allocate space for cursor data
- if (_cursorData.w != w || _cursorData.h != h)
+ if (_cursorData.w != w || _cursorData.h != h ||
+ _cursorData.bytesPerPixel != _cursorFormat.bytesPerPixel)
_cursorData.create(w, h, _cursorFormat.bytesPerPixel);
// Save cursor data