diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 0ef17a33e9..5eb30a8815 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -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. diff --git a/src/textures/pngtexture.cpp b/src/textures/pngtexture.cpp index 26e552de48..f612681e57 100644 --- a/src/textures/pngtexture.cpp +++ b/src/textures/pngtexture.cpp @@ -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;