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 | ae032390e2840d165550693cbd8f94c39ab3653b (patch) | |
tree | 7909f51bfbf996bd1105ccbff8ee84a729eb7bd8 /screenshot.c | |
parent | 8051d5c2964c47e29b3aa9c47f20bde8662cbbed (diff) | |
download | openttd-ae032390e2840d165550693cbd8f94c39ab3653b.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
Diffstat (limited to 'screenshot.c')
-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... |