summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-03 07:51:13 +0000
committertron <tron@openttd.org>2005-07-03 07:51:13 +0000
commitc3b47e09d363b1876162ba1565fe4adf746d9946 (patch)
tree7909f51bfbf996bd1105ccbff8ee84a729eb7bd8
parente9ecf890784e0c1a84249a594ebc934fa7f62542 (diff)
downloadopenttd-c3b47e09d363b1876162ba1565fe4adf746d9946.tar.xz
(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
-rw-r--r--screenshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screenshot.c b/screenshot.c
index ba309bf57..ad7c2064a 100644
--- a/screenshot.c
+++ b/screenshot.c
@@ -332,7 +332,7 @@ static bool MakePCXImage(const char *name, ScreenshotCallback *callb, void *user
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...