Aseprite loading fix. Draw.Sprite overload

This commit is contained in:
Matt Thorson
2020-06-13 22:01:30 -07:00
parent 67f0bf6e88
commit 8917d7f873
3 changed files with 22 additions and 6 deletions

View File

@ -55,6 +55,11 @@ namespace Strawberry
return Point((int)a.X, (int)a.Y);
}
static public implicit operator SDL2.SDL.Point(Point a)
{
return .((int32)a.X, (int32)a.Y);
}
static public bool operator==(Point a, Point b)
{
return a.X == b.X && a.Y == b.Y;