mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2025-12-16 22:19:31 +07:00
little bits tag fix
This commit is contained in:
@@ -81,10 +81,6 @@ namespace FlashTools.Internal {
|
||||
return new Vector2((int)method_args[0], (int)method_args[1]);
|
||||
}
|
||||
|
||||
static string GetSwfPath(string asset_path) {
|
||||
return Path.ChangeExtension(asset_path, ".swf");
|
||||
}
|
||||
|
||||
static string GetAtlasPath(string asset_path) {
|
||||
return Path.ChangeExtension(asset_path, ".png");
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace FlashTools.Internal.SwfTools.SwfTags {
|
||||
public byte BitmapFormat;
|
||||
public ushort BitmapWidth;
|
||||
public ushort BitmapHeight;
|
||||
public byte BitmapColorTableSize;
|
||||
public ushort BitmapColorTableSize;
|
||||
public byte[] ZlibBitmapData;
|
||||
|
||||
public override SwfTagType TagType {
|
||||
@@ -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() + 1;
|
||||
tag.BitmapColorTableSize = (ushort)(reader.ReadByte() + 1);
|
||||
}
|
||||
tag.ZlibBitmapData = reader.ReadRest();
|
||||
return tag;
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace FlashTools.Internal.SwfTools.SwfTags {
|
||||
public byte BitmapFormat;
|
||||
public ushort BitmapWidth;
|
||||
public ushort BitmapHeight;
|
||||
public byte BitmapColorTableSize;
|
||||
public ushort BitmapColorTableSize;
|
||||
public byte[] ZlibBitmapData;
|
||||
|
||||
public override SwfTagType TagType {
|
||||
@@ -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() + 1;
|
||||
tag.BitmapColorTableSize = (ushort)(reader.ReadByte() + 1);
|
||||
}
|
||||
tag.ZlibBitmapData = reader.ReadRest();
|
||||
return tag;
|
||||
|
||||
Reference in New Issue
Block a user