[Scummvm-cvs-logs] CVS: scummvm/scumm script_v80he.cpp,2.108,2.109

kirben kirben at users.sourceforge.net
Mon May 9 23:44:04 CEST 2005


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14402/scumm

Modified Files:
	script_v80he.cpp 
Log Message:

Add code for drawPixel


Index: script_v80he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v80he.cpp,v
retrieving revision 2.108
retrieving revision 2.109
diff -u -d -r2.108 -r2.109
--- script_v80he.cpp	10 May 2005 05:42:47 -0000	2.108
+++ script_v80he.cpp	10 May 2005 06:42:31 -0000	2.109
@@ -718,6 +718,7 @@
 }
 
 void ScummEngine_v80he::drawPixel(int x, int y, int flags) {
+	byte *src, *dst;
 	VirtScreen *vs;
 
 	if (x < 0 || x > 639)
@@ -731,16 +732,21 @@
 
 	markRectAsDirty(vs->number, x, y, x, y + 1);
 
-	// TODO flags
 	if (flags & 0x4000) {
-
-
+		src = vs->getPixels(x, y);
+		dst = vs->getBackPixels(x, y);
+		*dst = *src;
 	} else if (flags & 0x2000) {
-
-
-	} else if (flags & 0x8000) {
-
-
+		src = vs->getBackPixels(x, y);
+		dst = vs->getPixels(x, y);
+		*dst = *src;
+	} else {
+		dst = vs->getPixels(x, y);
+		*dst = flags;
+		if (flags & 0x8000) {
+			dst = vs->getBackPixels(x, y);
+			*dst = flags;
+		}
 	}
 }
 





More information about the Scummvm-git-logs mailing list