mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
fixed it so pngs load again.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@230 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
74397d5368
commit
cd9439c5b7
1 changed files with 1 additions and 1 deletions
|
@ -1484,7 +1484,7 @@ qbyte *Read32BitImageFile(qbyte *buf, int len, int *width, int *height)
|
||||||
return data;
|
return data;
|
||||||
|
|
||||||
#ifdef AVAIL_PNGLIB
|
#ifdef AVAIL_PNGLIB
|
||||||
if ((buf[0] == -119 && buf[1] == 'P' && buf[2] == 'N' && buf[3] == 'G') && (data = ReadPNGFile(buf, com_filesize, width, height)))
|
if ((buf[0] == 137 && buf[1] == 'P' && buf[2] == 'N' && buf[3] == 'G') && (data = ReadPNGFile(buf, com_filesize, width, height)))
|
||||||
return data;
|
return data;
|
||||||
#endif
|
#endif
|
||||||
#ifdef AVAIL_JPEGLIB
|
#ifdef AVAIL_JPEGLIB
|
||||||
|
|
Loading…
Reference in a new issue