fix: Fix Big Textures Not Positioned Correctly

This commit is contained in:
Syntriax 2023-11-27 15:12:04 +03:00
parent 9f4ad882e3
commit d2881e94df
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class DisplayableSpriteBehaviour : Behaviour, IDisplayableSprite, IAssign
Rectangle rectangle = new Rectangle((int)position.X, -(int)position.Y, (int)(Sprite.Texture2D.Width * scale.X), (int)(Sprite.Texture2D.Height * scale.Y));
spriteBatch.Draw(Sprite.Texture2D, rectangle, null, Color, transform.Rotation, Origin, SpriteEffects, Depth);
spriteBatch.Draw(Sprite.Texture2D, rectangle, null, Color, transform.Rotation, new Vector2(Sprite.Texture2D.Width, Sprite.Texture2D.Height) * Origin, SpriteEffects, Depth);
}
public bool Assign(ISprite sprite)