aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-06-23 06:19:06 +0530
committerEugene Sandulenko2019-09-03 17:16:57 +0200
commitfbc5dffc10f2563e94ebdc03ff269c7f9da75386 (patch)
treedb7de759f9d61d7e3893a80935a7c4a1ffba5327 /engines/hdb
parent6d28554d2a96b30bbbf1759888882358f09e8557 (diff)
downloadscummvm-rg350-fbc5dffc10f2563e94ebdc03ff269c7f9da75386.tar.gz
scummvm-rg350-fbc5dffc10f2563e94ebdc03ff269c7f9da75386.tar.bz2
scummvm-rg350-fbc5dffc10f2563e94ebdc03ff269c7f9da75386.zip
HDB: Init Cursor, Text Edges and load Game Font
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/draw-manager.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp
index e8b4e44c5a..0cdc7e35dc 100644
--- a/engines/hdb/draw-manager.cpp
+++ b/engines/hdb/draw-manager.cpp
@@ -38,6 +38,18 @@ DrawMan::~DrawMan() {
bool DrawMan::init() {
+ // Set the default cursor pos & char clipping
+ setCursor(0, 0);
+
+ _eLeft = 0;
+ _eRight = kScreenWidth;
+ _eTop = 0;
+ _eBottom = kScreenHeight;
+
+ // Load Game Font
+ if (!loadFont("normalprop"))
+ return false;
+
// Read total number of tiles in game
_numTiles = g_hdb->_fileMan->getCount("t32_", TYPE_TILE32);
if (!_numTiles) {