diff options
author | Sven Hesse | 2012-06-28 17:45:02 +0200 |
---|---|---|
committer | Sven Hesse | 2012-07-30 01:44:42 +0200 |
commit | 27782700a5631a25129b12779abb540a906f6a96 (patch) | |
tree | 9c3fc6374dcc626a8696d29cde3973489b973d61 /engines/gob/draw_v2.cpp | |
parent | 38fe3c3cd9e656b3e3f2b35011895d6703a1a896 (diff) | |
download | scummvm-rg350-27782700a5631a25129b12779abb540a906f6a96.tar.gz scummvm-rg350-27782700a5631a25129b12779abb540a906f6a96.tar.bz2 scummvm-rg350-27782700a5631a25129b12779abb540a906f6a96.zip |
GOB: Add some PreGob and Once Upon A Time cursor functions
Diffstat (limited to 'engines/gob/draw_v2.cpp')
-rw-r--r-- | engines/gob/draw_v2.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/gob/draw_v2.cpp b/engines/gob/draw_v2.cpp index ac43c7b86a..f5475278c4 100644 --- a/engines/gob/draw_v2.cpp +++ b/engines/gob/draw_v2.cpp @@ -74,13 +74,16 @@ void Draw_v2::closeScreen() { } void Draw_v2::blitCursor() { - if (_cursorIndex == -1) + if (!_cursorSprites || (_cursorIndex == -1)) return; _showCursor = (_showCursor & ~2) | ((_showCursor & 1) << 1); } void Draw_v2::animateCursor(int16 cursor) { + if (!_cursorSprites) + return; + int16 cursorIndex = cursor; int16 newX = 0, newY = 0; uint16 hotspotX, hotspotY; |