diff --git a/Program.cs b/Program.cs index 848d2cf..0c2a41c 100644 --- a/Program.cs +++ b/Program.cs @@ -55,9 +55,9 @@ public static void ProcessImage(string file) foreach (XmlNode node in doc.DocumentElement.SelectNodes("SubTexture")) { - padding = Math.Min(padding, (int)float.Parse(node.Attributes["x"].Value)); - maxX = Math.Max(maxX, (int)float.Parse(node.Attributes["x"].Value) + (int)float.Parse(node.Attributes["width"].Value)); - maxY = Math.Max(maxY, (int)float.Parse(node.Attributes["y"].Value) + (int)float.Parse(node.Attributes["height"].Value)); + padding = Math.Min(padding, (int)Math.Ceiling(float.Parse(node.Attributes["x"].Value))); + maxX = Math.Max(maxX, (int)Math.Ceiling(float.Parse(node.Attributes["x"].Value)) + (int)Math.Ceiling(float.Parse(node.Attributes["width"].Value))); + maxY = Math.Max(maxY, (int)Math.Ceiling(float.Parse(node.Attributes["y"].Value)) + (int)Math.Ceiling(float.Parse(node.Attributes["height"].Value))); } maxX += padding; diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 6e6e40b..f095d9b 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // すべての値を指定するか、次を使用してビルド番号とリビジョン番号を既定に設定できます // 既定値にすることができます: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.2.0")] -[assembly: AssemblyFileVersion("1.0.2.0")] +[assembly: AssemblyVersion("1.0.3.0")] +[assembly: AssemblyFileVersion("1.0.3.0")]