Texture pixel format change

This commit is contained in:
Matt Thorson committed 2020-05-27 20:46:28 -07:00
1 parent 6bfc6c7721
commit d2ce347caa
2 files changed
+12 -13

No files matched your search

+1 -2
View File
@@ -40,8 +40,7 @@ namespace Strawberry
static public void Sprite(Sprite sprite, int frame, Point position)
{
SDL.Rect src = Strawberry.Rect(0, 0, sprite.Width, sprite.Height);
SDL.Rect dst = Strawberry.Rect(position.X, position.Y, sprite.Width, sprite.Height);
SDL.Rect dst = Strawberry.Rect(position.X - Camera.X, position.Y - Camera.Y, sprite.Width, sprite.Height);
SDL.RenderCopy(Game.Renderer, sprite[frame].Texture, &src, &dst);
}
}