diff options
Diffstat (limited to 'engines/chewy/graphics.cpp')
-rw-r--r-- | engines/chewy/graphics.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/chewy/graphics.cpp b/engines/chewy/graphics.cpp index fda46a3e7a..84e6002dc9 100644 --- a/engines/chewy/graphics.cpp +++ b/engines/chewy/graphics.cpp @@ -22,6 +22,7 @@ #include "common/system.h" #include "common/events.h" +#include "graphics/cursorman.h" #include "graphics/palette.h" #include "chewy/graphics.h" @@ -85,4 +86,23 @@ void Graphics::playVideo(uint num) { cfoDecoder->close(); } +void Graphics::setCursor(uint num) { + SpriteResource *res = new SpriteResource("cursor.taf"); + TAFChunk *cursor = res->getSprite(num); + + CursorMan.replaceCursor(cursor->data, cursor->width, cursor->height, 0, 0, 0); + + delete[] cursor->data; + delete cursor; + delete res; +} + +void Graphics::showCursor() { + CursorMan.showMouse(true); +} + +void Graphics::hideCursor() { + CursorMan.showMouse(false); +} + } // End of namespace Chewy |