diff options
author | uruk | 2014-06-19 11:50:42 +0200 |
---|---|---|
committer | uruk | 2014-06-19 11:50:42 +0200 |
commit | ea9b4d0729a8f88515164a2d823247b48e55e5b2 (patch) | |
tree | c2ea00864dbc336070803b216a4f542a03e26952 | |
parent | ff99cb9658eacdcf9bf0cafb22b0529e76a4b3f9 (diff) | |
download | scummvm-rg350-ea9b4d0729a8f88515164a2d823247b48e55e5b2.tar.gz scummvm-rg350-ea9b4d0729a8f88515164a2d823247b48e55e5b2.tar.bz2 scummvm-rg350-ea9b4d0729a8f88515164a2d823247b48e55e5b2.zip |
CGE2: Implement snMouse().
-rw-r--r-- | engines/cge2/cge2.h | 2 | ||||
-rw-r--r-- | engines/cge2/snail.cpp | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/engines/cge2/cge2.h b/engines/cge2/cge2.h index c02b01c33a..62d57fb63a 100644 --- a/engines/cge2/cge2.h +++ b/engines/cge2/cge2.h @@ -181,7 +181,7 @@ public: void snSlave(Sprite *spr, int val); void snTrans(Sprite *spr, int val); void snPort(Sprite *spr, int val); - void snMouse(int val); + void snMouse(bool on); void snNNext(Sprite *spr, Action act, int val); void snRNNext(Sprite *spr, int val); void snRMTNext(Sprite *spr, int val); diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp index d40789c6d1..b7731aebb8 100644 --- a/engines/cge2/snail.cpp +++ b/engines/cge2/snail.cpp @@ -534,8 +534,11 @@ void CGE2Engine::snPort(Sprite *spr, int val) { warning("STUB: CGE2Engine::snPort()"); } -void CGE2Engine::snMouse(int val) { - warning("STUB: CGE2Engine::snMouse()"); +void CGE2Engine::snMouse(bool on) { + if (on) + _mouse->on(); + else + _mouse->off(); } void CGE2Engine::snNNext(Sprite *spr, Action act, int val) { |