From: havoc Date: Tue, 3 Aug 2010 05:54:37 +0000 (+0000) Subject: also allow 32768x32768 pcx files X-Git-Tag: xonotic-v0.1.0preview~303 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c8f0ab2dccd8ac6bd1dc240006906b19f9055ed1;p=xonotic%2Fdarkplaces.git also allow 32768x32768 pcx files git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10371 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=ec2ededaa2abdac2ae14ee5a37eca8770830657c --- diff --git a/image.c b/image.c index 8f6026ad..4e4572ab 100644 --- a/image.c +++ b/image.c @@ -219,7 +219,7 @@ unsigned char* LoadPCX_BGRA (const unsigned char *f, int filesize, int *miplevel image_width = pcx.xmax + 1 - pcx.xmin; image_height = pcx.ymax + 1 - pcx.ymin; - if (pcx.manufacturer != 0x0a || pcx.version != 5 || pcx.encoding != 1 || pcx.bits_per_pixel != 8 || image_width > 4096 || image_height > 4096 || image_width <= 0 || image_height <= 0) + if (pcx.manufacturer != 0x0a || pcx.version != 5 || pcx.encoding != 1 || pcx.bits_per_pixel != 8 || image_width > 32768 || image_height > 32768 || image_width <= 0 || image_height <= 0) { Con_Print("Bad pcx file\n"); return NULL;