Skip to content

Commit

Permalink
[WzLib] WzPngProperty - Fix decoding image of type 513
Browse files Browse the repository at this point in the history
ref #96
  • Loading branch information
lastbattle committed Jan 21, 2021
1 parent 0fc34bb commit d6053aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MapleLib/WzLib/WzProperties/WzPngProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,10 @@ internal void ParsePng()
bmp.UnlockBits(bmpData);
break;
}
case 513:
case 513: // nexon wizet logo
{
bmp = new Bitmap(width, height, PixelFormat.Format16bppRgb565);
BitmapData bmpData = bmp.LockBits(new Rectangle(0, 0, width, height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
BitmapData bmpData = bmp.LockBits(new Rectangle(0, 0, width, height), ImageLockMode.WriteOnly, PixelFormat.Format16bppRgb565);

int uncompressedSize = width * height * 2;
byte[] decBuf = new byte[uncompressedSize];
Expand Down

0 comments on commit d6053aa

Please sign in to comment.