[Scummvm-cvs-logs] SF.net SVN: scummvm: [28809] scummvm/trunk/engines/agi/picture.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Sun Sep 2 01:02:36 CEST 2007


Revision: 28809
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28809&view=rev
Author:   sev
Date:     2007-09-01 16:02:36 -0700 (Sat, 01 Sep 2007)

Log Message:
-----------
Fix regression

Modified Paths:
--------------
    scummvm/trunk/engines/agi/picture.cpp

Modified: scummvm/trunk/engines/agi/picture.cpp
===================================================================
--- scummvm/trunk/engines/agi/picture.cpp	2007-09-01 21:22:26 UTC (rev 28808)
+++ scummvm/trunk/engines/agi/picture.cpp	2007-09-01 23:02:36 UTC (rev 28809)
@@ -226,7 +226,7 @@
 	putVirtPixel(x1, y1);
 
 	for (;;) {
-		if ((disp = nextByte) >= 0xe0)
+		if ((disp = nextByte) >= 0xf0)
 			break;
 
 		dx = ((disp & 0xf0) >> 4) & 0x0f;
@@ -257,10 +257,10 @@
 	putVirtPixel(x1, y1);
 
 	for (;;) {
-		if ((x2 = nextByte) >= 0xe0)
+		if ((x2 = nextByte) >= 0xf0)
 			break;
 
-		if ((y2 = nextByte) >= 0xe0)
+		if ((y2 = nextByte) >= 0xf0)
 			break;
 
 		drawLine(x1, y1, x2, y2);
@@ -363,14 +363,14 @@
 	for (;;) {
 		x2 = nextByte;
 
-		if (x2 >= 0xe0)
+		if (x2 >= 0xf0)
 			break;
 
 		drawLine(x1, y1, x2, y1);
 		x1 = x2;
 		y2 = nextByte;
 
-		if (y2 >= 0xe0)
+		if (y2 >= 0xf0)
 			break;
 
 		drawLine(x1, y1, x1, y2);
@@ -394,14 +394,14 @@
 	for (;;) {
 		y2 = nextByte;
 
-		if (y2 >= 0xe0)
+		if (y2 >= 0xf0)
 			break;
 
 		drawLine(x1, y1, x1, y2);
 		y1 = y2;
 		x2 = nextByte;
 
-		if (x2 >= 0xe0)
+		if (x2 >= 0xf0)
 			break;
 
 		drawLine(x1, y1, x2, y1);
@@ -419,7 +419,7 @@
 void PictureMgr::fill() {
 	int x1, y1;
 
-	while ((x1 = nextByte) < 0xe0 && (y1 = nextByte) < 0xe0)
+	while ((x1 = nextByte) < 0xf0 && (y1 = nextByte) < 0xf0)
 		agiFill(x1, y1);
 
 	foffs--;
@@ -481,15 +481,15 @@
 
 	for (;;) {
 		if (patCode & 0x20) {
-			if ((patNum = nextByte) >= 0xe0)
+			if ((patNum = nextByte) >= 0xf0)
 				break;
 			patNum = (patNum >> 1) & 0x7f;
 		}
 
-		if ((x1 = nextByte) >= 0xe0)
+		if ((x1 = nextByte) >= 0xf0)
 			break;
 
-		if ((y1 = nextByte) >= 0xe0)
+		if ((y1 = nextByte) >= 0xf0)
 			break;
 
 		plotPattern(x1, y1);


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