diff --git a/source/MonoGame.Aseprite/MonoGame.Aseprite.FNA.csproj b/source/MonoGame.Aseprite/MonoGame.Aseprite.FNA.csproj new file mode 100644 index 0000000..2b12e49 --- /dev/null +++ b/source/MonoGame.Aseprite/MonoGame.Aseprite.FNA.csproj @@ -0,0 +1,15 @@ + + + + + net8.0 + true + + + + + + + + + \ No newline at end of file diff --git a/source/MonoGame.Aseprite/TextureAtlas.cs b/source/MonoGame.Aseprite/TextureAtlas.cs index 7e2ac7b..055aff8 100644 --- a/source/MonoGame.Aseprite/TextureAtlas.cs +++ b/source/MonoGame.Aseprite/TextureAtlas.cs @@ -128,7 +128,7 @@ public TextureRegion CreateRegion(string name, int x, int y, int width, int heig /// /// The created by this method. public TextureRegion CreateRegion(string name, Point location, Point size) => - CreateRegion(name, new Rectangle(location, size)); + CreateRegion(name, new Rectangle(location.X, location.Y, size.X, size.Y)); /// /// Creates a new and adds it to this .