From: molivier Date: Fri, 26 Jul 2002 06:18:16 +0000 (+0000) Subject: Fixed PCX file loading for images with an odd width X-Git-Tag: RELEASE_0_2_0_RC1~421 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f7981ce9a75a3e8e44199855f9c13cc70eeb4550;p=xonotic%2Fdarkplaces.git 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 --- 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; }