diff options
author | Paul Gilbert | 2016-04-26 22:32:49 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:12:06 -0400 |
commit | d6b104d5a3e4ad7baebee8504ed60537a35a429e (patch) | |
tree | 316fb3ef469b95603f0eecd9b3920dce988c5029 | |
parent | 34c32e38e2659406e3556f752fcada8491860e92 (diff) | |
download | scummvm-rg350-d6b104d5a3e4ad7baebee8504ed60537a35a429e.tar.gz scummvm-rg350-d6b104d5a3e4ad7baebee8504ed60537a35a429e.tar.bz2 scummvm-rg350-d6b104d5a3e4ad7baebee8504ed60537a35a429e.zip |
TITANIC: Further work on CTextCursor fields
-rw-r--r-- | engines/titanic/support/text_cursor.cpp | 4 | ||||
-rw-r--r-- | engines/titanic/support/text_cursor.h | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/engines/titanic/support/text_cursor.cpp b/engines/titanic/support/text_cursor.cpp index 2f2ee8af8c..7e69a2239a 100644 --- a/engines/titanic/support/text_cursor.cpp +++ b/engines/titanic/support/text_cursor.cpp @@ -28,8 +28,8 @@ namespace Titanic { CTextCursor::CTextCursor(CScreenManager *screenManager) : _screenManager(screenManager), _priorTicks(300), _active(false), - _field24(0), _size(2, 10), _field38(0), _field3C(0), - _field44(0), _field48(0), _field4C(0), _field54(-1) { + _field24(0), _size(2, 10), _field44(0), _field48(0), _field4C(0), + _field54(-1) { screenManager->createSurface(10, 10); } diff --git a/engines/titanic/support/text_cursor.h b/engines/titanic/support/text_cursor.h index d9dbce0988..c9fcfa35dd 100644 --- a/engines/titanic/support/text_cursor.h +++ b/engines/titanic/support/text_cursor.h @@ -39,8 +39,7 @@ private: uint _priorTicks; int _field24; Point _size; - int _field38; - int _field3C; + Point _screenTopLeft; int _field44; int _field48; int _field4C; @@ -84,6 +83,11 @@ public: */ void setTicks(uint ticks) { _priorTicks = ticks; } + /** + * Returns whether the text cursor is active + */ + bool isActive() const { return _active; } + int get54() const { return _field54; } }; |