mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2026-01-04 15:36:54 +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.BitmapWidth = reader.ReadUInt16();
|
||||||
tag.BitmapHeight = reader.ReadUInt16();
|
tag.BitmapHeight = reader.ReadUInt16();
|
||||||
if ( tag.BitmapFormat == 3 ) {
|
if ( tag.BitmapFormat == 3 ) {
|
||||||
tag.BitmapColorTableSize = reader.ReadByte();
|
tag.BitmapColorTableSize = reader.ReadByte() + 1;
|
||||||
}
|
}
|
||||||
tag.ZlibBitmapData = reader.ReadRest();
|
tag.ZlibBitmapData = reader.ReadRest();
|
||||||
return tag;
|
return tag;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ namespace FlashTools.Internal.SwfTools.SwfTags {
|
|||||||
tag.BitmapWidth = reader.ReadUInt16();
|
tag.BitmapWidth = reader.ReadUInt16();
|
||||||
tag.BitmapHeight = reader.ReadUInt16();
|
tag.BitmapHeight = reader.ReadUInt16();
|
||||||
if ( tag.BitmapFormat == 3 ) {
|
if ( tag.BitmapFormat == 3 ) {
|
||||||
tag.BitmapColorTableSize = reader.ReadByte();
|
tag.BitmapColorTableSize = reader.ReadByte() + 1;
|
||||||
}
|
}
|
||||||
tag.ZlibBitmapData = reader.ReadRest();
|
tag.ZlibBitmapData = reader.ReadRest();
|
||||||
return tag;
|
return tag;
|
||||||
|
|||||||
Reference in New Issue
Block a user