From d6c371e6ff6759aea643440b6b42b261bb4ff528 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 8 Dec 2011 12:10:43 +0200 Subject: DREAMWEB: Port 'middlepanel' to C++ --- devtools/tasmrecover/tasm-recover | 1 + engines/dreamweb/dreambase.h | 1 + engines/dreamweb/dreamgen.cpp | 28 ---------------------------- engines/dreamweb/dreamgen.h | 1 - engines/dreamweb/stubs.cpp | 8 ++++++++ 5 files changed, 10 insertions(+), 29 deletions(-) diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover index 5f0fc1576d..bf24486561 100755 --- a/devtools/tasmrecover/tasm-recover +++ b/devtools/tasmrecover/tasm-recover @@ -440,6 +440,7 @@ generator = cpp(context, "DreamGen", blacklist = [ 'manasleep2', 'mansatstill', 'maptopanel', + 'middlepanel', 'mode640x480', 'modifychar', 'monkandryan', diff --git a/engines/dreamweb/dreambase.h b/engines/dreamweb/dreambase.h index e56018d0db..3849e4692a 100644 --- a/engines/dreamweb/dreambase.h +++ b/engines/dreamweb/dreambase.h @@ -90,6 +90,7 @@ public: Frame *tempGraphics3(); void showArrows(); void showOpBox(); + void middlePanel(); // from vgafades.cpp uint8 *mainPalette(); diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 81b1f2900e..d5d1e1884c 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -7219,34 +7219,6 @@ success: data.byte(kTurndirection) = 0; } -void DreamGenContext::middlePanel() { - STACK_CHECK; - ds = data.word(kTempsprites); - di = 72+47+20; - bx = 0; - al = 48; - ah = 0; - showFrame(); - ds = data.word(kTempsprites); - di = 72+19; - bx = 21; - al = 47; - ah = 0; - showFrame(); - ds = data.word(kTempsprites); - di = 160+23; - bx = 0; - al = 48; - ah = 4; - showFrame(); - ds = data.word(kTempsprites); - di = 160+71; - bx = 21; - al = 47; - ah = 4; - showFrame(); -} - void DreamGenContext::getUnderZoom() { STACK_CHECK; di = (8)+5; diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index 7a6b384257..fcbc61e564 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -600,7 +600,6 @@ public: void useKey(); void lockLightOn(); void discOps(); - void middlePanel(); void monitorLogo(); void dirFile(); void pickupConts(); diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 2fdb1420b4..a4c02e8e5a 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -3802,4 +3802,12 @@ void DreamGenContext::showSaveOps() { printMessage(kOpsx + 104, kOpsy + 14, 54, 101, (101 & 1)); } +void DreamBase::middlePanel() { + Frame *tempSprites = (Frame *)getSegment(data.word(kTempsprites)).ptr(0, 0); + showFrame(tempSprites, 72 + 47 + 20, 0, 48, 0); + showFrame(tempSprites, 72 + 19, 21, 47, 0); + showFrame(tempSprites, 160 + 23, 0, 48, 4); + showFrame(tempSprites, 160 + 71, 21, 47, 4); +} + } // End of namespace DreamGen -- cgit v1.2.3