aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/support/text_cursor.cpp4
-rw-r--r--engines/titanic/support/text_cursor.h8
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; }
};