(svn r2511) Fix an old bug in the PCX writer: The first pixel column contained garbage, the picture was shifted one to the right, and the last column was dropped
authortron
Sun, 03 Jul 2005 07:51:13 +0000
changeset 2003 4d8ed47781dc
parent 2002 63c3fde64ac3
child 2004 6b975f28c351
(svn r2511) Fix an old bug in the PCX writer: The first pixel column contained garbage, the picture was shifted one to the right, and the last column was dropped
screenshot.c
--- a/screenshot.c	Sat Jul 02 17:45:05 2005 +0000
+++ b/screenshot.c	Sun Jul 03 07:51:13 2005 +0000
@@ -332,7 +332,7 @@
 		for (i = 0; i != n; i++) {
 			int runcount = 1;
 			byte *bufp = buff + i * w;
-			byte runchar = buff[0];
+			byte runchar = *bufp++;
 			uint left;
 
 			// for each pixel...