diff options
author | Eugene Sandulenko | 2013-05-17 00:18:09 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-05-17 00:18:09 +0300 |
commit | f59512c47ea21c851535eeabf822aabdfde9167f (patch) | |
tree | 19c58c54c897dde0188e28951f0827a20ef3c4a0 /graphics/cursorman.cpp | |
parent | 4a62d6c25a4994a72c59ca3b8f2913ead565a173 (diff) | |
download | scummvm-rg350-f59512c47ea21c851535eeabf822aabdfde9167f.tar.gz scummvm-rg350-f59512c47ea21c851535eeabf822aabdfde9167f.tar.bz2 scummvm-rg350-f59512c47ea21c851535eeabf822aabdfde9167f.zip |
RECORDER: Implement Events Recorder
Diffstat (limited to 'graphics/cursorman.cpp')
-rw-r--r-- | graphics/cursorman.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/cursorman.cpp b/graphics/cursorman.cpp index c818101645..6825767dfd 100644 --- a/graphics/cursorman.cpp +++ b/graphics/cursorman.cpp @@ -48,6 +48,9 @@ bool CursorManager::isVisible() { bool CursorManager::showMouse(bool visible) { if (_cursorStack.empty()) return false; + if (_locked) { + return false; + } _cursorStack.top()->_visible = visible; @@ -225,6 +228,10 @@ void CursorManager::replaceCursorPalette(const byte *colors, uint start, uint nu } } +void CursorManager::lock(bool locked) { + _locked = locked; +} + CursorManager::Cursor::Cursor(const void *data, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, bool dontScale, const Graphics::PixelFormat *format) { #ifdef USE_RGB_COLOR if (!format) |