From ae032390e2840d165550693cbd8f94c39ab3653b Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 3 Jul 2005 07:51:13 +0000 Subject: (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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'screenshot.c') 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... -- cgit v1.2.3-54-g00ecf