From f7981ce9a75a3e8e44199855f9c13cc70eeb4550 Mon Sep 17 00:00:00 2001 From: molivier Date: Fri, 26 Jul 2002 06:18:16 +0000 Subject: [PATCH] Fixed PCX file loading for images with an odd width git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2093 d7cf8633-e32d-0410-b094-e92efae38249 --- image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/image.c b/image.c index 2023b0ae..f36e975d 100644 --- a/image.c +++ b/image.c @@ -159,6 +159,7 @@ qbyte* LoadPCX (qbyte *f, int matchwidth, int matchheight) else a[x++] = dataByte; } + fin += pcx.bytes_per_line - image_width; // the number of bytes per line is always forced to an even number while(x < image_width) a[x++] = 0; } -- 2.39.2