From fbc5dffc10f2563e94ebdc03ff269c7f9da75386 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Sun, 23 Jun 2019 06:19:06 +0530 Subject: HDB: Init Cursor, Text Edges and load Game Font --- engines/hdb/draw-manager.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'engines/hdb') 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) { -- cgit v1.2.3