aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/hdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r--engines/hdb/hdb.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 78c555c2d9..cc545208b2 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -111,14 +111,23 @@ Common::Error HDBGame::run() {
_console = new Console();
- Common::SeekableReadStream *stream = fileMan->findFirstData("monkeylogoscreen", DataType::TYPE_PIC);
- if (stream == NULL) {
+ Common::SeekableReadStream *titleStream = fileMan->findFirstData("monkeylogoscreen", TYPE_PIC);
+ if (titleStream == NULL) {
debug("The TitleScreen MPC entry can't be found.");
return Common::kReadingFailed;
}
Picture *titlePic = new Picture;
- Graphics::Surface surf = titlePic->load(stream);
+ Graphics::Surface surf = titlePic->load(titleStream);
+
+ Common::SeekableReadStream *tileStream = fileMan->findFirstData("t32_ground1", TYPE_TILE32);
+ if (tileStream == NULL) {
+ debug("The t32_shipwindow_lr MPC entry can't be found.");
+ return Common::kReadingFailed;
+ }
+
+ Tile *tile = new Tile;
+ Graphics::Surface surf2 = tile->load(tileStream);
while (!shouldQuit()) {
@@ -137,7 +146,8 @@ Common::Error HDBGame::run() {
}
g_system->copyRectToScreen(surf.getBasePtr(0, 0), surf.pitch, 0, 0, surf.w, surf.h);
-
+ g_system->copyRectToScreen(surf2.getBasePtr(0, 0), surf2.pitch, 0, 0, surf2.w, surf2.h);
+
g_system->updateScreen();
g_system->delayMillis(10);
}