little bits tag fix

This commit is contained in:
2016-08-19 10:27:26 +07:00
parent 225774b8c4
commit cb7229f334
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ namespace FlashTools.Internal.SwfTools.SwfTags {
tag.BitmapWidth = reader.ReadUInt16();
tag.BitmapHeight = reader.ReadUInt16();
if ( tag.BitmapFormat == 3 ) {
tag.BitmapColorTableSize = reader.ReadByte();
tag.BitmapColorTableSize = reader.ReadByte() + 1;
}
tag.ZlibBitmapData = reader.ReadRest();
return tag;

View File

@@ -31,7 +31,7 @@ namespace FlashTools.Internal.SwfTools.SwfTags {
tag.BitmapWidth = reader.ReadUInt16();
tag.BitmapHeight = reader.ReadUInt16();
if ( tag.BitmapFormat == 3 ) {
tag.BitmapColorTableSize = reader.ReadByte();
tag.BitmapColorTableSize = reader.ReadByte() + 1;
}
tag.ZlibBitmapData = reader.ReadRest();
return tag;