[Scummvm-cvs-logs] scummvm master -> 7c81f75d276c2f6897780172df61b9cbea7b2719

wjp wjp at usecode.org
Wed Dec 7 08:26:51 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:
7c81f75d27 DREAMWEB: Use symbolic constants and move functions to right files


Commit: 7c81f75d276c2f6897780172df61b9cbea7b2719
    https://github.com/scummvm/scummvm/commit/7c81f75d276c2f6897780172df61b9cbea7b2719
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2011-12-06T23:25:14-08:00

Commit Message:
DREAMWEB: Use symbolic constants and move functions to right files

Changed paths:
    engines/dreamweb/keypad.cpp
    engines/dreamweb/stubs.cpp
    engines/dreamweb/vgagrafx.cpp



diff --git a/engines/dreamweb/keypad.cpp b/engines/dreamweb/keypad.cpp
index cfb7973..44b01c4 100644
--- a/engines/dreamweb/keypad.cpp
+++ b/engines/dreamweb/keypad.cpp
@@ -228,4 +228,20 @@ void DreamGenContext::showOuterPad() {
 	showFrame(tempGraphics(), kKeypadx+74, kKeypady+76, 37, 0);
 }
 
+void DreamGenContext::dumpKeypad() {
+	multiDump(kKeypadx - 3, kKeypady - 4, 120, 90);
+}
+
+void DreamGenContext::dumpSymbol() {
+	data.byte(kNewtextline) = 0;
+	multiDump(kSymbolx, kSymboly + 20, 104, 60);
+}
+
+void DreamGenContext::dumpSymBox() {
+	if (data.word(kDumpx) != 0xFFFF) {
+		multiDump(data.word(kDumpx), data.word(kDumpy), 30, 77);
+		data.word(kDumpx) = 0xFFFF;
+	}
+}
+
 } // End of namespace DreamGen
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index af1250a..73bcbda 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -3829,4 +3829,9 @@ void DreamGenContext::isSetObOnMap() {
 	flags._z = isSetObOnMap(al);
 }
 
+void DreamGenContext::dumpZoom() {
+	if (data.byte(kZoomon) == 1)
+		multiDump(kZoomx + 5, kZoomy + 4, 46, 40);
+}
+
 } // End of namespace DreamGen
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index 1e678d0..3e1d97e 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -497,25 +497,4 @@ void DreamGenContext::createPanel2() {
 	showFrame(engine->icons2(), 160, 0, 5, 2);
 }
 
-void DreamGenContext::dumpKeypad() {
-	multiDump((36 + 112) - 3, 72 - 4, 120, 90);
-}
-
-void DreamGenContext::dumpSymbol() {
-	data.byte(kNewtextline) = 0;
-	multiDump(64, 56 + 20, 104, 60);
-}
-
-void DreamGenContext::dumpZoom() {
-	if (data.byte(kZoomon) == 1)
-		multiDump(8 + 5, 132 + 4, 46, 40);
-}
-
-void DreamGenContext::dumpSymBox() {
-	if (data.word(kDumpx) != 0xFFFF) {
-		multiDump(data.word(kDumpx), data.word(kDumpy), 30, 77);
-		data.word(kDumpx) = 0xFFFF;
-	}
-}
-
 } // End of namespace DreamGen






More information about the Scummvm-git-logs mailing list