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~230^2~107 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ec2ededaa2abdac2ae14ee5a37eca8770830657c;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 --- diff --git a/image.c b/image.c index 462634d0..bec68ec5 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;