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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu May 29 01:17:10 CEST 2008


Revision: 32356
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32356&view=rev
Author:   thebluegr
Date:     2008-05-28 16:17:10 -0700 (Wed, 28 May 2008)

Log Message:
-----------
Implemented visual effects 11 and 13 (inverse of 10 and 12)

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-05-28 22:42:15 UTC (rev 32355)
+++ scummvm/trunk/engines/made/screenfx.cpp	2008-05-28 23:17:10 UTC (rev 32356)
@@ -76,10 +76,18 @@
 		vfx10(surface, palette, newPalette, colorCount);
 		break;
 
+	case 11:	// "Screen wipe in", right to left
+		vfx11(surface, palette, newPalette, colorCount);
+		break;
+
 	case 12:	// "Screen wipe in", top to bottom
 		vfx12(surface, palette, newPalette, colorCount);
 		break;
 
+	case 13:	// "Screen wipe in", bottom to top
+		vfx13(surface, palette, newPalette, colorCount);
+		break;
+
 	case 14:	// "Screen open" effect
 		vfx14(surface, palette, newPalette, colorCount);
 		break;
@@ -256,6 +264,16 @@
 	setPalette(palette);
 }
 
+// "Screen wipe in", right to left
+void ScreenEffects::vfx11(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
+	for (int x = 312; x > -56; x -= 8) {
+		copyFxRect(surface, x, 0, x + 64, 200);
+		setBlendedPalette(palette, newPalette, colorCount, x + 56, 368);
+		_screen->updateScreenAndWait(25);
+	}
+	setPalette(palette);
+}
+
 // "Screen wipe in", top to bottom
 void ScreenEffects::vfx12(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
 	for (int y = -70; y < 312; y += 10) {
@@ -266,6 +284,16 @@
 	setPalette(palette);
 }
 
+// "Screen wipe in", bottom to top
+void ScreenEffects::vfx13(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
+	for (int y = 312; y > -70; y -= 10) {
+		copyFxRect(surface, 0, y, 320, y + 80);
+		setBlendedPalette(palette, newPalette, colorCount, y + 70, 260);
+		_screen->updateScreenAndWait(25);
+	}
+	setPalette(palette);
+}
+
 // "Screen open" effect
 void ScreenEffects::vfx14(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
 	int16 x = 8, y = 5;

Modified: scummvm/trunk/engines/made/screenfx.h
===================================================================
--- scummvm/trunk/engines/made/screenfx.h	2008-05-28 22:42:15 UTC (rev 32355)
+++ scummvm/trunk/engines/made/screenfx.h	2008-05-28 23:17:10 UTC (rev 32356)
@@ -57,7 +57,9 @@
 	void vfx02(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);
 	void vfx12(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
+	void vfx13(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 	void vfx14(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 	void vfx15(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
 	void vfx17(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);


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