Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Commit

Permalink
[Toolkit.Graphics] Fix issue #362. One method of SpriteBatch.Draw was…
Browse files Browse the repository at this point in the history
… not using SpriteEffects parameter (flip horizontal/vertical)
  • Loading branch information
xoofx committed Jan 5, 2013
1 parent 46f1379 commit df1ea1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Toolkit/SharpDX.Toolkit.Graphics/SpriteBatch.cs
Expand Up @@ -314,7 +314,7 @@ public void Draw(ShaderResourceView texture, Vector2 position, Color color)
public void Draw(ShaderResourceView texture, DrawingRectangle destinationRectangle, DrawingRectangle? sourceRectangle, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth)
{
var destination = new DrawingRectangleF(destinationRectangle.X, destinationRectangle.Y, destinationRectangle.Width, destinationRectangle.Height);
DrawSprite(texture, ref destination, false, ref sourceRectangle, color, rotation, ref vector2Zero, SpriteEffects.None, layerDepth);
DrawSprite(texture, ref destination, false, ref sourceRectangle, color, rotation, ref origin, effects, layerDepth);
}

/// <summary>
Expand Down

0 comments on commit df1ea1c

Please sign in to comment.