]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
also allow 32768x32768 pcx files
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 3 Aug 2010 05:54:37 +0000 (05:54 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 3 Aug 2010 06:57:14 +0000 (08:57 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10371 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ec2ededaa2abdac2ae14ee5a37eca8770830657c

image.c

diff --git a/image.c b/image.c
index 8f6026ade56a899da13ac5d742850aca1342e497..4e4572ab1f2f090e860572c56ac57c1235a37a1e 100644 (file)
--- 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;