[Scummvm-cvs-logs] scummvm master -> f26707e353d5bedac683777c5490b2bc0d110f2b
dhewg
dhewg at wiibrew.org
Sat Feb 26 08:57:38 CET 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
f26707e353 OPENGL: Fix 16bit cursors
Commit: f26707e353d5bedac683777c5490b2bc0d110f2b
https://github.com/scummvm/scummvm/commit/f26707e353d5bedac683777c5490b2bc0d110f2b
Author: dhewg (dhewg at wiibrew.org)
Date: 2011-02-25T23:56:49-08:00
Commit Message:
OPENGL: Fix 16bit cursors
Changed paths:
backends/graphics/opengl/opengl-graphics.cpp
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 8299745..17a77f6 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
More information about the Scummvm-git-logs
mailing list