- fixed: The PNG loader for true color textures overwrote the IDAT size with

the IDAT id when reading the image.


SVN r1805 (trunk)
This commit is contained in:
Christoph Oelckers 2009-09-07 05:48:34 +00:00
parent b07445d149
commit 8e4ba47c98
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
September 7, 2009 (Changes by Graf Zahl)
- fixed: The PNG loader for true color textures overwrote the IDAT size with
the IDAT id when reading the image.
September 6, 2009 (Changes by Graf Zahl)
- fixed: Trying to pick up an object of the Ammo base class caused a crash.
- changed line_t's sidenum into sidedef pointers.

View file

@ -646,7 +646,7 @@ int FPNGTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int w, int h, i
lump->Seek (StartOfIDAT, SEEK_SET);
lump->Read(&len, 4);
lump->Read(&len, 4);
lump->Read(&id, 4);
M_ReadIDAT (lump, Pixels, Width, Height, pixwidth, BitDepth, ColorType, Interlace, BigLong((unsigned int)len));
delete lump;