[Scummvm-cvs-logs] scummvm master -> 26889c12432732174bb306285515959c24c4d140

tramboi bertrand_augereau at yahoo.fr
Sun Dec 4 16:33:50 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:
26889c1243 DREAMWEB: Removed 'icons1' and 'icons2' stubs


Commit: 26889c12432732174bb306285515959c24c4d140
    https://github.com/scummvm/scummvm/commit/26889c12432732174bb306285515959c24c4d140
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-12-04T09:32:55-08:00

Commit Message:
DREAMWEB: Removed 'icons1' and 'icons2' stubs

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



diff --git a/engines/dreamweb/object.cpp b/engines/dreamweb/object.cpp
index 4caeddf..845b5fb 100644
--- a/engines/dreamweb/object.cpp
+++ b/engines/dreamweb/object.cpp
@@ -73,7 +73,7 @@ void DreamGenContext::obToInv() {
 }
 
 void DreamGenContext::obToInv(uint8 index, uint8 flag, uint16 x, uint16 y) {
-	showFrame(icons1(), x - 2, y - 1, 10, 0);
+	showFrame(engine->icons1(), x - 2, y - 1, 10, 0);
 	if (index == 0xff)
 		return;
 
@@ -84,7 +84,7 @@ void DreamGenContext::obToInv(uint8 index, uint8 flag, uint16 x, uint16 y) {
 	const DynObject *object = (const DynObject *)getAnyAdDir(index, flag);
 	bool worn = isItWorn(object);
 	if (worn)
-		showFrame(icons1(), x - 3, y - 2, 7, 0);
+		showFrame(engine->icons1(), x - 3, y - 2, 7, 0);
 }
 
 void DreamGenContext::obPicture() {
@@ -104,10 +104,10 @@ void DreamGenContext::obIcons() {
 	getAnyAd(&value1, &value2);
 	if (value1 != 0xff) {
 		// can open it
-		showFrame(icons2(), 210, 1, 4, 0);
+		showFrame(engine->icons2(), 210, 1, 4, 0);
 	}
 
-	showFrame(icons2(), 260, 1, 1, 0);
+	showFrame(engine->icons2(), 260, 1, 1, 0);
 }
 
 void DreamGenContext::examineOb(bool examineAgain) {
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index efaa62c..12dc39b 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -1379,7 +1379,7 @@ void DreamGenContext::crosshair() {
 	} else {
 		frame = 29;
 	}
-	showFrame(icons1(), kZoomx + 24, kZoomy + 19, frame, 0);
+	showFrame(engine->icons1(), kZoomx + 24, kZoomy + 19, frame, 0);
 }
 
 void DreamGenContext::delTextLine() {
@@ -1534,8 +1534,8 @@ void DreamGenContext::examineObText() {
 }
 
 void DreamGenContext::showPanel() {
-	showFrame(icons1(), 72, 0, 19, 0);
-	showFrame(icons1(), 192, 0, 19, 0);
+	showFrame(engine->icons1(), 72, 0, 19, 0);
+	showFrame(engine->icons1(), 192, 0, 19, 0);
 }
 
 void DreamGenContext::blockNameText() {
@@ -1819,7 +1819,7 @@ void DreamGenContext::showBlink() {
 		blinkFrame = 6;
 	static const uint8 blinkTab[] = { 16,18,18,17,16,16,16 };
 	uint8 width, height;
-	showFrame(icons1(), 44, 32, blinkTab[blinkFrame], 0, &width, &height);
+	showFrame(engine->icons1(), 44, 32, blinkTab[blinkFrame], 0, &width, &height);
 }
 
 void DreamGenContext::dumpBlink() {
@@ -1965,9 +1965,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(engine->icons1(), x, y, 3, 128);
 	} else {
-		const Frame *frame = icons1() + (data.byte(kPointerframe) + 20);
+		const Frame *frame = engine->icons1() + (data.byte(kPointerframe) + 20);
 		uint8 width = frame->width;
 		uint8 height = frame->height;
 		if (width < 12)
@@ -1977,7 +1977,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(engine->icons1(), x, y, data.byte(kPointerframe) + 20, 0);
 	}
 }
 
@@ -2114,8 +2114,8 @@ bool DreamGenContext::checkIfSet(uint8 x, uint8 y) {
 }
 
 void DreamGenContext::showRyanPage() {
-	showFrame(icons1(), kInventx + 167, kInventy - 12, 12, 0);
-	showFrame(icons1(), kInventx + 167 + 18 * data.byte(kRyanpage), kInventy - 12, 13 + data.byte(kRyanpage), 0);
+	showFrame(engine->icons1(), kInventx + 167, kInventy - 12, 12, 0);
+	showFrame(engine->icons1(), kInventx + 167 + 18 * data.byte(kRyanpage), kInventy - 12, 13 + data.byte(kRyanpage), 0);
 }
 
 void DreamGenContext::findAllRyan() {
@@ -2367,7 +2367,7 @@ void DreamGenContext::mainScreen() {
 
 void DreamGenContext::showWatch() {
 	if (data.byte(kWatchon)) {
-		showFrame(icons1(), 250, 1, 6, 0);
+		showFrame(engine->icons1(), 250, 1, 6, 0);
 		showTime();
 	}
 }
@@ -2442,7 +2442,7 @@ void DreamGenContext::roomName() {
 void DreamGenContext::zoomIcon() {
 	if (data.byte(kZoomon) == 0)
 		return;
-	showFrame(icons1(), kZoomx, kZoomy-1, 8, 0);
+	showFrame(engine->icons1(), kZoomx, kZoomy-1, 8, 0);
 }
 
 void DreamGenContext::loadRoom() {
@@ -2510,14 +2510,6 @@ Frame * DreamGenContext::tempGraphics3() {
 	return (Frame *)getSegment(data.word(kTempgraphics3)).ptr(0, 0);
 }
 
-Frame * DreamGenContext::icons1() {
-	return engine->icons1();
-}
-
-Frame * DreamGenContext::icons2() {
-	return engine->icons2();
-}
-
 void DreamGenContext::playChannel0(uint8 index, uint8 repeat) {
 	if (data.byte(kSoundint) == 255)
 		return;
@@ -2844,14 +2836,14 @@ void DreamGenContext::showRightPage() {
 }
 
 void DreamGenContext::showExit() {
-	showFrame(icons1(), 274, 154, 11, 0);
+	showFrame(engine->icons1(), 274, 154, 11, 0);
 }
 
 void DreamGenContext::showMan() {
-	showFrame(icons1(), 0, 0, 0, 0);
-	showFrame(icons1(), 0, 114, 1, 0);
+	showFrame(engine->icons1(), 0, 0, 0, 0);
+	showFrame(engine->icons1(), 0, 114, 1, 0);
 	if (data.byte(kShadeson))
-		showFrame(icons1(), 28, 25, 2, 0);
+		showFrame(engine->icons1(), 28, 25, 2, 0);
 }
 
 void DreamGenContext::panelIcons1() {
@@ -2860,14 +2852,14 @@ void DreamGenContext::panelIcons1() {
 		x = 48;
 	else
 		x = 0;
-	showFrame(icons2(), 204 + x, 4, 2, 0);
+	showFrame(engine->icons2(), 204 + x, 4, 2, 0);
 	if (data.byte(kZoomon) != 1)
-		showFrame(icons1(), 228 + x, 8, 5, 0);
+		showFrame(engine->icons1(), 228 + x, 8, 5, 0);
 	showWatch();
 }
 
 void DreamGenContext::examIcon() {
-	showFrame(icons2(), 254, 5, 3, 0);
+	showFrame(engine->icons2(), 254, 5, 3, 0);
 }
 
 uint8 DreamGenContext::getLocation(uint8 index) {
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index dc77781..b630167 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -319,8 +319,6 @@
 	Frame *tempGraphics();
 	Frame *tempGraphics2();
 	Frame *tempGraphics3();
-	Frame *icons1();
-	Frame *icons2();
 	void accessLightOn();
 	void accessLightOff();
 	void randomAccess(uint16 count);
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index a14c416..1088058 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -493,16 +493,16 @@ void DreamGenContext::loadPalFromIFF() {
 }
 
 void DreamGenContext::createPanel() {
-	showFrame(icons2(), 0, 8, 0, 2);
-	showFrame(icons2(), 160, 8, 0, 2);
-	showFrame(icons2(), 0, 104, 0, 2);
-	showFrame(icons2(), 160, 104, 0, 2);
+	showFrame(engine->icons2(), 0, 8, 0, 2);
+	showFrame(engine->icons2(), 160, 8, 0, 2);
+	showFrame(engine->icons2(), 0, 104, 0, 2);
+	showFrame(engine->icons2(), 160, 104, 0, 2);
 }
 
 void DreamGenContext::createPanel2() {
 	createPanel();
-	showFrame(icons2(), 0, 0, 5, 2);
-	showFrame(icons2(), 160, 0, 5, 2);
+	showFrame(engine->icons2(), 0, 0, 5, 2);
+	showFrame(engine->icons2(), 160, 0, 5, 2);
 }
 
 } /*namespace dreamgen */






More information about the Scummvm-git-logs mailing list