diff options
author | Paul Gilbert | 2016-10-25 23:10:46 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-10-25 23:10:46 -0400 |
commit | 45d208b2ec058d2709c3a5da58abff41d08d782c (patch) | |
tree | 85262989cb76a9e78cf6156027f50a7ea799438d /engines/titanic/support/mouse_cursor.h | |
parent | eb6fa08311d5b7b7dcdd6e8d0b14854fb097d97a (diff) | |
download | scummvm-rg350-45d208b2ec058d2709c3a5da58abff41d08d782c.tar.gz scummvm-rg350-45d208b2ec058d2709c3a5da58abff41d08d782c.tar.bz2 scummvm-rg350-45d208b2ec058d2709c3a5da58abff41d08d782c.zip |
TITANIC: Further work on mouse cursor enablement logic
Diffstat (limited to 'engines/titanic/support/mouse_cursor.h')
-rw-r--r-- | engines/titanic/support/mouse_cursor.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/engines/titanic/support/mouse_cursor.h b/engines/titanic/support/mouse_cursor.h index 8881c9b182..8960c54f8a 100644 --- a/engines/titanic/support/mouse_cursor.h +++ b/engines/titanic/support/mouse_cursor.h @@ -66,7 +66,8 @@ private: CursorId _cursorId; CursorEntry _cursors[NUM_CURSORS]; uint _setCursorCount; - int _hideCount; + int _hideCounter; + bool _cursorSuppressed; int _fieldE4; int _fieldE8; @@ -89,6 +90,29 @@ public: void hide(); /** + * Decrements the hide counter, and shows the mouse if + * it's reached zero + */ + void incHideCounter(); + + /** + * Increments the hide counter, hiding the mouse if it's the first call + */ + void decHideCounter(); + + /** + * Suppresses the cursor. When suppressed, the cursor isn't drawn, + * even if it's not otherwise being hidden + */ + void suppressCursor(); + + /** + * Unflags the cursor as being suppressed, allowing it to be drawn + * again if it's enabled + */ + void unsuppressCursor(); + + /** * Set the cursor */ void setCursor(CursorId cursorId); |