fix: Fix Big Textures Not Positioned Correctly
This commit is contained in:
parent
9f4ad882e3
commit
d2881e94df
|
@ -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));
|
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)
|
public bool Assign(ISprite sprite)
|
||||||
|
|
Loading…
Reference in New Issue