From c8f0ab2dccd8ac6bd1dc240006906b19f9055ed1 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 3 Aug 2010 05:54:37 +0000 Subject: [PATCH] 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 --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2