mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2025-12-16 14:11:19 +07:00
little bits tag fix
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user