aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-06-28 20:54:53 +0530
committerEugene Sandulenko2019-09-03 17:17:03 +0200
commit105abf54295f44ff346f6b1d33bafa873b1d5417 (patch)
tree11f35621061da305b7c3bf1c25ad7953d5f2d007 /engines/hdb
parent4c5cb8bafea28df61afd54d568a5b2b60961723d (diff)
downloadscummvm-rg350-105abf54295f44ff346f6b1d33bafa873b1d5417.tar.gz
scummvm-rg350-105abf54295f44ff346f6b1d33bafa873b1d5417.tar.bz2
scummvm-rg350-105abf54295f44ff346f6b1d33bafa873b1d5417.zip
HDB: Add Pointer/Cursor data
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/draw-manager.cpp18
-rw-r--r--engines/hdb/draw-manager.h3
2 files changed, 16 insertions, 5 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp
index fabadac2c7..57585ca7d0 100644
--- a/engines/hdb/draw-manager.cpp
+++ b/engines/hdb/draw-manager.cpp
@@ -28,6 +28,7 @@ DrawMan::DrawMan() {
_tLookupArray = NULL;
_gfxCache = new Common::Array<GfxCache *>;
_globalSurface.create(kScreenWidth, kScreenHeight, g_hdb->_format);
+ _pointerDisplayable = 1;
_systemInit = false;
}
@@ -110,11 +111,18 @@ bool DrawMan::init() {
TODO: Setup Gamma Table
*/
- /*
- TODO: Load Mouse Pointer and Display Cursor
- */
-
- //Load all 4 levels of star colors
+ // Load Mouse Pointer and Display Cursor
+ _mousePointer[0] = loadPic(PIC_MOUSE_CURSOR1);
+ _mousePointer[1] = loadPic(PIC_MOUSE_CURSOR2);
+ _mousePointer[2] = loadPic(PIC_MOUSE_CURSOR3);
+ _mousePointer[3] = loadPic(PIC_MOUSE_CURSOR4);
+ _mousePointer[4] = loadPic(PIC_MOUSE_CURSOR5);
+ _mousePointer[5] = loadPic(PIC_MOUSE_CURSOR6);
+ _mousePointer[6] = loadPic(PIC_MOUSE_CURSOR7);
+ _mousePointer[7] = loadPic(PIC_MOUSE_CURSOR8);
+ _showCursor = true;
+
+ // Load all 4 levels of star colors
_starField[0] = getPicture("pic_star64");
_starField[1] = getPicture("pic_star128");
_starField[2] = getPicture("pic_star192");
diff --git a/engines/hdb/draw-manager.h b/engines/hdb/draw-manager.h
index 7f16f07928..9f05b31c26 100644
--- a/engines/hdb/draw-manager.h
+++ b/engines/hdb/draw-manager.h
@@ -172,6 +172,9 @@ private:
// Cursor
int _cursorX, _cursorY;
+ Picture *_mousePointer[8]; // Gfx for screen pointer (4 Animations)
+ int _pointerDisplayable;
+ bool _showCursor;
// Font Data