[Scummvm-cvs-logs] scummvm master -> 68fe065d0e81011918f4412fcfcc585cb0622519

tramboi bertrand_augereau at yahoo.fr
Sun Dec 4 14:38:13 CET 2011


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

Summary:
6c561d11c6 DREAMWEB: 'showExit' ported to C++
68fe065d0e DREAMWEB: kIcons1 accessor


Commit: 6c561d11c6f77bf068bde3dc949bae47fb8ffe90
    https://github.com/scummvm/scummvm/commit/6c561d11c6f77bf068bde3dc949bae47fb8ffe90
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-12-04T07:31:11-08:00

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

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



diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index fbd6b13..a879f8d 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -407,6 +407,7 @@ generator = cpp(context, "DreamGen", blacklist = [
 	'showcity',
 	'showcurrentfile',
 	'showdiscops',
+	'showexit',
 	'showfirstuse',
 	'showfolder',
 	'showframe',
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index aa2c3b9..b23ad98 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -10892,16 +10892,6 @@ void DreamGenContext::showMan() {
 	showFrame();
 }
 
-void DreamGenContext::showExit() {
-	STACK_CHECK;
-	ds = data.word(kIcons1);
-	di = 274;
-	bx = 154;
-	al = 11;
-	ah = 0;
-	showFrame();
-}
-
 void DreamGenContext::panelIcons1() {
 	STACK_CHECK;
 	di = 0;
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index 952ebfc..33f2bdd 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -710,7 +710,7 @@ public:
 	void findInvPos();
 	void workoutFrames();
 	void dumpSymBox();
-	void dumpSymbol();
+	void rollEndCredits();
 	void intro2Text();
 	void interviewer();
 	void getKeyAndLogo();
@@ -734,7 +734,7 @@ public:
 	void showDiaryPage();
 	void useShield();
 	void getBackToOps();
-	void rollEndCredits();
+	void dumpSymbol();
 	void intro1Text();
 	void transferToEx();
 	void reExFromInv();
@@ -880,7 +880,6 @@ public:
 	void showPuzText();
 	void incRyanPage();
 	void useElevator3();
-	void showExit();
 	void findExObject();
 	void clearChanges();
 	void useChurchHole();
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index dd1f777..ec62239 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -2798,6 +2798,11 @@ void DreamGenContext::showRightPage() {
 	data.word(kLinespacing) = 10;
 }
 
+void DreamGenContext::showExit() {
+	const Frame *frame = (const Frame *)getSegment(data.word(kIcons1)).ptr(0, 0);
+	showFrame(frame, 274, 154, 11, 0);
+}
+
 uint8 DreamGenContext::getLocation(uint8 index) {
 	return data.byte(kRoomscango + index);
 }
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index d540279..619d26b 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -404,6 +404,7 @@
 	void singleKey(uint8 key, uint16 x, uint16 y);
 	void showKeypad();
 	void showOuterPad();
+	void showExit();
 	void buttonOne();
 	void buttonTwo();
 	void buttonThree();


Commit: 68fe065d0e81011918f4412fcfcc585cb0622519
    https://github.com/scummvm/scummvm/commit/68fe065d0e81011918f4412fcfcc585cb0622519
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-12-04T07:36:02-08:00

Commit Message:
DREAMWEB: kIcons1 accessor

Changed paths:
    engines/dreamweb/stubs.cpp
    engines/dreamweb/stubs.h



diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index ec62239..414c9c6 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -1357,8 +1357,7 @@ void DreamGenContext::crosshair() {
 	} else {
 		frame = 29;
 	}
-	const Frame *src = (const Frame *)getSegment(data.word(kIcons1)).ptr(0, 0);
-	showFrame(src, kZoomx + 24, kZoomy + 19, frame, 0);
+	showFrame(icons1(), kZoomx + 24, kZoomy + 19, frame, 0);
 }
 
 void DreamGenContext::delTextLine() {
@@ -1513,9 +1512,8 @@ void DreamGenContext::examineObText() {
 }
 
 void DreamGenContext::showPanel() {
-	Frame *frame = (Frame *)getSegment(data.word(kIcons1)).ptr(0, sizeof(Frame));
-	showFrame(frame, 72, 0, 19, 0);
-	showFrame(frame, 192, 0, 19, 0);
+	showFrame(icons1(), 72, 0, 19, 0);
+	showFrame(icons1(), 192, 0, 19, 0);
 }
 
 void DreamGenContext::blockNameText() {
@@ -1799,7 +1797,7 @@ void DreamGenContext::showBlink() {
 		blinkFrame = 6;
 	static const uint8 blinkTab[] = { 16,18,18,17,16,16,16 };
 	uint8 width, height;
-	showFrame((Frame *)getSegment(data.word(kIcons1)).ptr(0, 0), 44, 32, blinkTab[blinkFrame], 0, &width, &height);
+	showFrame(icons1(), 44, 32, blinkTab[blinkFrame], 0, &width, &height);
 }
 
 void DreamGenContext::dumpBlink() {
@@ -1920,7 +1918,6 @@ void DreamGenContext::checkCoords(const RectWithCallback *rectWithCallbacks) {
 
 void DreamGenContext::showPointer() {
 	showBlink();
-	const Frame *icons1 = ((const Frame *)getSegment(data.word(kIcons1)).ptr(0, 0));
 	uint16 x = data.word(kMousex);
 	data.word(kOldpointerx) = data.word(kMousex);
 	uint16 y = data.word(kMousey);
@@ -1946,9 +1943,9 @@ void DreamGenContext::showPointer() {
 		data.word(kOldpointery) = yMin;
 		multiGet(getSegment(data.word(kBuffers)).ptr(kPointerback, 0), xMin, yMin, width, height);
 		showFrame(frames, x, y, 3 * data.byte(kItemframe) + 1, 128);
-		showFrame(icons1, x, y, 3, 128);
+		showFrame(icons1(), x, y, 3, 128);
 	} else {
-		const Frame *frame = icons1 + (data.byte(kPointerframe) + 20);
+		const Frame *frame = icons1() + (data.byte(kPointerframe) + 20);
 		uint8 width = frame->width;
 		uint8 height = frame->height;
 		if (width < 12)
@@ -1958,7 +1955,7 @@ void DreamGenContext::showPointer() {
 		data.byte(kPointerxs) = width;
 		data.byte(kPointerys) = height;
 		multiGet(getSegment(data.word(kBuffers)).ptr(kPointerback, 0), x, y, width, height);
-		showFrame(icons1, x, y, data.byte(kPointerframe) + 20, 0);
+		showFrame(icons1(), x, y, data.byte(kPointerframe) + 20, 0);
 	}
 }
 
@@ -2095,9 +2092,8 @@ bool DreamGenContext::checkIfSet(uint8 x, uint8 y) {
 }
 
 void DreamGenContext::showRyanPage() {
-	Frame *icons1 = (Frame *)getSegment(data.word(kIcons1)).ptr(0, 0);
-	showFrame(icons1, kInventx + 167, kInventy - 12, 12, 0);
-	showFrame(icons1, kInventx + 167 + 18 * data.byte(kRyanpage), kInventy - 12, 13 + data.byte(kRyanpage), 0);
+	showFrame(icons1(), kInventx + 167, kInventy - 12, 12, 0);
+	showFrame(icons1(), kInventx + 167 + 18 * data.byte(kRyanpage), kInventy - 12, 13 + data.byte(kRyanpage), 0);
 }
 
 void DreamGenContext::findAllRyan() {
@@ -2349,7 +2345,7 @@ void DreamGenContext::mainScreen() {
 
 void DreamGenContext::showWatch() {
 	if (data.byte(kWatchon)) {
-		showFrame((Frame *)getSegment(data.word(kIcons1)).ptr(0, 0), 250, 1, 6, 0);
+		showFrame(icons1(), 250, 1, 6, 0);
 		showTime();
 	}
 }
@@ -2424,7 +2420,7 @@ void DreamGenContext::roomName() {
 void DreamGenContext::zoomIcon() {
 	if (data.byte(kZoomon) == 0)
 		return;
-	showFrame((Frame *)getSegment(data.word(kIcons1)).ptr(0, 0), kZoomx, kZoomy-1, 8, 0);
+	showFrame(icons1(), kZoomx, kZoomy-1, 8, 0);
 }
 
 void DreamGenContext::loadRoom() {
@@ -2488,6 +2484,10 @@ Frame * DreamGenContext::tempGraphics3() {
 	return (Frame *)getSegment(data.word(kTempgraphics3)).ptr(0, 0);
 }
 
+Frame * DreamGenContext::icons1() {
+	return (Frame *)getSegment(data.word(kIcons1)).ptr(0, 0);
+}
+
 void DreamGenContext::playChannel0(uint8 index, uint8 repeat) {
 	if (data.byte(kSoundint) == 255)
 		return;
@@ -2799,8 +2799,7 @@ void DreamGenContext::showRightPage() {
 }
 
 void DreamGenContext::showExit() {
-	const Frame *frame = (const Frame *)getSegment(data.word(kIcons1)).ptr(0, 0);
-	showFrame(frame, 274, 154, 11, 0);
+	showFrame(icons1(), 274, 154, 11, 0);
 }
 
 uint8 DreamGenContext::getLocation(uint8 index) {
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index 619d26b..bc836d6 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -318,6 +318,7 @@
 	Frame *tempGraphics();
 	Frame *tempGraphics2();
 	Frame *tempGraphics3();
+	Frame *icons1();
 	void accessLightOn();
 	void accessLightOff();
 	void randomAccess(uint16 count);






More information about the Scummvm-git-logs mailing list