diff options
author | Nipun Garg | 2019-06-01 17:56:39 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:42 +0200 |
commit | 7a00e0b6a183c89e4f80d260ad7765f4219573c4 (patch) | |
tree | 12a29f44f02e8352bfb94211707e233fbd99a22a | |
parent | 07b3408ff4c79b16ae213bfca69b6dd2c71a754e (diff) | |
download | scummvm-rg350-7a00e0b6a183c89e4f80d260ad7765f4219573c4.tar.gz scummvm-rg350-7a00e0b6a183c89e4f80d260ad7765f4219573c4.tar.bz2 scummvm-rg350-7a00e0b6a183c89e4f80d260ad7765f4219573c4.zip |
HDB: Draw the t32_ground1 tile to the screen
-rw-r--r-- | engines/hdb/hdb.cpp | 18 |
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); } |