[Scummvm-cvs-logs] SF.net SVN: scummvm:[35512] scummvm/trunk/engines/made

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Dec 23 23:37:24 CET 2008


Revision: 35512
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35512&view=rev
Author:   thebluegr
Date:     2008-12-23 22:37:24 +0000 (Tue, 23 Dec 2008)

Log Message:
-----------
Added stubs for the missing visual effect opcodes

Modified Paths:
--------------
    scummvm/trunk/engines/made/screenfx.cpp
    scummvm/trunk/engines/made/screenfx.h

Modified: scummvm/trunk/engines/made/screenfx.cpp
===================================================================
--- scummvm/trunk/engines/made/screenfx.cpp	2008-12-23 22:01:47 UTC (rev 35511)
+++ scummvm/trunk/engines/made/screenfx.cpp	2008-12-23 22:37:24 UTC (rev 35512)
@@ -92,6 +92,10 @@
 		vfx07(surface, palette, newPalette, colorCount);
 		break;
 
+	case 8:
+		vfx08(surface, palette, newPalette, colorCount);
+		break;
+
 	case 9:		// "Checkerboard" effect
 		vfx09(surface, palette, newPalette, colorCount);
 		break;
@@ -128,6 +132,18 @@
 		vfx17(surface, palette, newPalette, colorCount);
 		break;
 
+	case 18:
+		vfx18(surface, palette, newPalette, colorCount);
+		break;
+
+	case 19:
+		vfx19(surface, palette, newPalette, colorCount);
+		break;
+
+	case 20:
+		vfx20(surface, palette, newPalette, colorCount);
+		break;
+
 	default:
 		vfx00(surface, palette, newPalette, colorCount);
 		warning("Unimplemented visual effect %d", effectNum);
@@ -327,6 +343,12 @@
  	setPalette(palette);
 }
 
+void ScreenEffects::vfx08(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
+	// TODO
+	warning("Unimplemented visual effect: 8");
+	vfx00(surface, palette, newPalette, colorCount);
+}
+
 // "Checkerboard" effect
 void ScreenEffects::vfx09(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
 	for (int i = 0; i < 8; i++) {
@@ -448,5 +470,22 @@
 
 }
 
+void ScreenEffects::vfx18(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
+	// TODO
+	warning("Unimplemented visual effect: 18");
+	vfx00(surface, palette, newPalette, colorCount);
+}
 
+void ScreenEffects::vfx19(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
+	// TODO
+	warning("Unimplemented visual effect: 19");
+	vfx00(surface, palette, newPalette, colorCount);
+}
+
+void ScreenEffects::vfx20(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
+	// TODO
+	warning("Unimplemented visual effect: 20");
+	vfx00(surface, palette, newPalette, colorCount);
+}
+
 } // End of namespace Made

Modified: scummvm/trunk/engines/made/screenfx.h
===================================================================
--- scummvm/trunk/engines/made/screenfx.h	2008-12-23 22:01:47 UTC (rev 35511)
+++ scummvm/trunk/engines/made/screenfx.h	2008-12-23 22:37:24 UTC (rev 35512)
@@ -53,6 +53,7 @@
 	void setBlendedPalette(byte *palette, byte *newPalette, int colorCount, int16 value, int16 maxValue);
 	void copyFxRect(Graphics::Surface *surface, int16 x1, int16 y1, int16 x2, int16 y2);
 	void copyRect(Graphics::Surface *surface, int16 x1, int16 y1, int16 x2, int16 y2);
+
 	void vfx00(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 	void vfx01(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 	void vfx02(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
@@ -61,6 +62,7 @@
 	void vfx05(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 	void vfx06(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 	void vfx07(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
+	void vfx08(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 	void vfx09(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 	void vfx10(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 	void vfx11(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
@@ -70,6 +72,9 @@
 	void vfx15(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 	void vfx16(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 	void vfx17(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
+	void vfx18(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
+	void vfx19(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
+	void vfx20(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 };
 
 } // End of namespace Made


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list