little bits tag fix

This commit is contained in:
2016-08-19 10:40:07 +07:00
parent cb7229f334
commit cf4abab472
3 changed files with 4 additions and 8 deletions

View File

@@ -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");
}

View File

@@ -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;

View File

@@ -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;