diff options
author | tron <tron@openttd.org> | 2005-07-03 07:51:13 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-03 07:51:13 +0000 |
commit | c3b47e09d363b1876162ba1565fe4adf746d9946 (patch) | |
tree | 7909f51bfbf996bd1105ccbff8ee84a729eb7bd8 | |
parent | e9ecf890784e0c1a84249a594ebc934fa7f62542 (diff) | |
download | openttd-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.c | 2 |
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... |