[Scummvm-cvs-logs] scummvm master -> 51c30303a894c0630e3950a7e2168316780dcc76

tramboi bertrand_augereau at yahoo.fr
Mon Nov 21 19:54:37 CET 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
51c30303a8 DREAMWEB: 'createpanel' and 'createpanel2' ported to C++


Commit: 51c30303a894c0630e3950a7e2168316780dcc76
    https://github.com/scummvm/scummvm/commit/51c30303a894c0630e3950a7e2168316780dcc76
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-11-21T12:53:20-08:00

Commit Message:
DREAMWEB: 'createpanel' and 'createpanel2' ported to C++

Changed paths:
    devtools/tasmrecover/tasm-recover
    engines/dreamweb/dreamgen.cpp
    engines/dreamweb/dreamgen.h
    engines/dreamweb/stubs.h
    engines/dreamweb/vgagrafx.cpp



diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index 3af0b59..647b080 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -266,6 +266,8 @@ generator = cpp(context, "DreamGen", blacklist = [
 	'powerlightoff',
 	'accesslighton',
 	'accesslightoff',
+	'createpanel',
+	'createpanel2',
 	], skip_output = [
 	# These functions are processed but not output
 	'dreamweb',
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index a3096fb..d685617 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -2232,51 +2232,6 @@ bigroom:
 	_add(data.byte(kMapysize), 8);
 }
 
-void DreamGenContext::createpanel() {
-	STACK_CHECK;
-	di = 0;
-	bx = 8;
-	ds = data.word(kIcons2);
-	al = 0;
-	ah = 2;
-	showframe();
-	di = 160;
-	bx = 8;
-	ds = data.word(kIcons2);
-	al = 0;
-	ah = 2;
-	showframe();
-	di = 0;
-	bx = 104;
-	ds = data.word(kIcons2);
-	al = 0;
-	ah = 2;
-	showframe();
-	di = 160;
-	bx = 104;
-	ds = data.word(kIcons2);
-	al = 0;
-	ah = 2;
-	showframe();
-}
-
-void DreamGenContext::createpanel2() {
-	STACK_CHECK;
-	createpanel();
-	di = 0;
-	bx = 0;
-	ds = data.word(kIcons2);
-	al = 5;
-	ah = 2;
-	showframe();
-	di = 160;
-	bx = 0;
-	ds = data.word(kIcons2);
-	al = 5;
-	ah = 2;
-	showframe();
-}
-
 void DreamGenContext::transfermap() {
 	STACK_CHECK;
 	di = data.word(kExframepos);
@@ -14812,8 +14767,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
 		case addr_deleverything: deleverything(); break;
 		case addr_showpcx: showpcx(); break;
 		case addr_setmode: setmode(); break;
-		case addr_createpanel: createpanel(); break;
-		case addr_createpanel2: createpanel2(); break;
 		case addr_vsync: vsync(); break;
 		case addr_doshake: doshake(); break;
 		case addr_transfermap: transfermap(); break;
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index fd86363..468e0a2 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -475,8 +475,6 @@ public:
 	static const uint16 addr_transfermap = 0xc244;
 	static const uint16 addr_doshake = 0xc20c;
 	static const uint16 addr_vsync = 0xc208;
-	static const uint16 addr_createpanel2 = 0xc200;
-	static const uint16 addr_createpanel = 0xc1fc;
 	static const uint16 addr_setmode = 0xc1dc;
 	static const uint16 addr_showpcx = 0xc1cc;
 	static const uint16 addr_deleverything = 0xc1c0;
@@ -1331,7 +1329,7 @@ public:
 	void dumpzoom();
 	//void aboutturn();
 	void usealtar();
-	void createpanel2();
+	//void createpanel2();
 	//void turnonpower();
 	void manasleep2();
 	void moretalk();
@@ -1550,7 +1548,7 @@ public:
 	void interviewer();
 	void purgeanitem();
 	void madman();
-	void createpanel();
+	//void createpanel();
 	//void turnpathon();
 	void chewy();
 	void madmanstelly();
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index 2b762c0..ba44970 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -325,4 +325,6 @@
 	void playchannel0(uint8 index);
 	void playchannel1(uint8 index);
 	void showmainops();
+	void createpanel();
+	void createpanel2();
 
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index 9871b5e..658f45e 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -492,5 +492,20 @@ void DreamGenContext::loadpalfromiff() {
 	}
 }
 
+void DreamGenContext::createpanel() {
+	Frame *icons = (Frame *)segRef(data.word(kIcons2)).ptr(0, 0);
+	showframe(icons, 0, 8, 0, 2);
+	showframe(icons, 160, 8, 0, 2);
+	showframe(icons, 0, 104, 0, 2);
+	showframe(icons, 160, 104, 0, 2);
+}
+
+void DreamGenContext::createpanel2() {
+	createpanel();
+	Frame *icons = (Frame *)segRef(data.word(kIcons2)).ptr(0, 0);
+	showframe(icons, 0, 0, 5, 2);
+	showframe(icons, 160, 0, 5, 2);
+}
+
 } /*namespace dreamgen */
 






More information about the Scummvm-git-logs mailing list