[Scummvm-cvs-logs] scummvm master -> 37052c17622eea7d9546f724c6fbbd8127977531

tramboi bertrand_augereau at yahoo.fr
Fri Nov 18 04:47:26 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:
37052c1762 DREAMWEB: 'fadeupyellows' ported to C++


Commit: 37052c17622eea7d9546f724c6fbbd8127977531
    https://github.com/scummvm/scummvm/commit/37052c17622eea7d9546f724c6fbbd8127977531
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-11-17T21:46:58-08:00

Commit Message:
DREAMWEB: 'fadeupyellows' ported to C++

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



diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index 7d02cfa..1d7617d 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -241,6 +241,7 @@ generator = cpp(context, "DreamGen", blacklist = [
 	'printcurs',
 	'delcurs',
 	'hangoncurs',
+	'fadeupyellows',
 	'loadroomssample',
 	], skip_output = [
 	# These functions are processed but not output
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index edbc184..f7291bc 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -2769,25 +2769,6 @@ void DreamGenContext::fadeupmonfirst() {
 	hangon();
 }
 
-void DreamGenContext::fadeupyellows() {
-	STACK_CHECK;
-	paltoendpal();
-	es = data.word(kBuffers);
-	di = (0+(228*13)+32+60+(32*32)+(11*10*3)+768)+(231*3);
-	cx = 3*8;
-	ax = 0;
-	_stosb(cx, true);
-	di = (0+(228*13)+32+60+(32*32)+(11*10*3)+768)+(246*3);
-	_stosb();
-	_stosw();
-	data.byte(kFadedirection) = 1;
-	data.byte(kFadecount) = 63;
-	data.byte(kColourpos) = 0;
-	data.byte(kNumtofade) = 128;
-	cx = 128;
-	hangon();
-}
-
 void DreamGenContext::initialmoncols() {
 	STACK_CHECK;
 	paltostartpal();
@@ -15503,7 +15484,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
 		case addr_fadedownmon: fadedownmon(); break;
 		case addr_fadeupmon: fadeupmon(); break;
 		case addr_fadeupmonfirst: fadeupmonfirst(); break;
-		case addr_fadeupyellows: fadeupyellows(); break;
 		case addr_initialmoncols: initialmoncols(); break;
 		case addr_titles: titles(); break;
 		case addr_endgame: endgame(); break;
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index bfd83d7..1d095b9 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -474,7 +474,6 @@ public:
 	static const uint16 addr_endgame = 0xc2c4;
 	static const uint16 addr_titles = 0xc2c0;
 	static const uint16 addr_initialmoncols = 0xc2bc;
-	static const uint16 addr_fadeupyellows = 0xc2b8;
 	static const uint16 addr_fadeupmonfirst = 0xc2b4;
 	static const uint16 addr_fadeupmon = 0xc2b0;
 	static const uint16 addr_fadedownmon = 0xc2ac;
@@ -1309,7 +1308,7 @@ public:
 	//void showpanel();
 	void soundstartup();
 	void slabdoora();
-	void fadeupyellows();
+	//void fadeupyellows();
 	void slabdoorc();
 	void slabdoorb();
 	void slabdoore();
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index f367486..7aa5d7d 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -292,4 +292,5 @@
 	void textforend();
 	void readsetdata();
 	void loadroomssample();
+	void fadeupyellows();
 
diff --git a/engines/dreamweb/vgafades.cpp b/engines/dreamweb/vgafades.cpp
index 10857d2..ef03831 100644
--- a/engines/dreamweb/vgafades.cpp
+++ b/engines/dreamweb/vgafades.cpp
@@ -83,5 +83,16 @@ void DreamGenContext::fadecalculation() {
 	--data.byte(kFadecount);
 }
 
+void DreamGenContext::fadeupyellows() {
+	paltoendpal();
+	memset(endPalette() + 231*3, 0, 8*3);
+	memset(endPalette() + 246*3, 0, 1*3);
+	data.byte(kFadedirection) = 1;
+	data.byte(kFadecount) = 63;
+	data.byte(kColourpos) = 0;
+	data.byte(kNumtofade) = 128;
+	hangon(128);
+}
+
 } /*namespace dreamgen */
 






More information about the Scummvm-git-logs mailing list