- increased max targa size to 8192x8192

was done before by Phase in tuho1, and no error found...
This commit is contained in:
2004-01-22 12:59:46 +00:00
parent f844d011a2
commit d4fc04f76a

View File

@@ -358,8 +358,8 @@ static int checktarga(TARGA *tga, unsigned char *mem)
return(0); return(0);
} }
if (tga->mapsize && tga->mapbits > 32) return(0); if (tga->mapsize && tga->mapbits > 32) return(0);
if (tga->xsize <= 0 || tga->xsize >= 4096) return(0); if (tga->xsize <= 0 || tga->xsize >= 8192) return(0);
if (tga->ysize <= 0 || tga->ysize >= 4096) return(0); if (tga->ysize <= 0 || tga->ysize >= 8192) return(0);
if (tga->pixsize > 32) return(0); if (tga->pixsize > 32) return(0);
if (tga->pixsize == 0) return(0); if (tga->pixsize == 0) return(0);
return(1); return(1);