changeset 2003:6e1de16a0792 draft

(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
author tron <tron@openttd.org>
date Sun, 03 Jul 2005 07:51:13 +0000
parents 29da0a6786b5
children 2517c447e62c
files screenshot.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/screenshot.c
+++ b/screenshot.c
@@ -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...