mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
- 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:
parent
b07445d149
commit
8e4ba47c98
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
September 6, 2009 (Changes by Graf Zahl)
|
||||||
- fixed: Trying to pick up an object of the Ammo base class caused a crash.
|
- fixed: Trying to pick up an object of the Ammo base class caused a crash.
|
||||||
- changed line_t's sidenum into sidedef pointers.
|
- changed line_t's sidenum into sidedef pointers.
|
||||||
|
|
|
@ -646,7 +646,7 @@ int FPNGTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int w, int h, i
|
||||||
|
|
||||||
lump->Seek (StartOfIDAT, SEEK_SET);
|
lump->Seek (StartOfIDAT, SEEK_SET);
|
||||||
lump->Read(&len, 4);
|
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));
|
M_ReadIDAT (lump, Pixels, Width, Height, pixwidth, BitDepth, ColorType, Interlace, BigLong((unsigned int)len));
|
||||||
delete lump;
|
delete lump;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue