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

Commit

Permalink
[SharpDX] RectangleF methods should accept floats
Browse files Browse the repository at this point in the history
  • Loading branch information
shoelzer committed Jul 31, 2013
1 parent c0e995d commit 4fc393b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SharpDX/RectangleF.cs
Expand Up @@ -267,7 +267,7 @@ public void Offset(Point amount)
/// <summary>Changes the position of the Rectangle.</summary>
/// <param name="offsetX">Change in the x-position.</param>
/// <param name="offsetY">Change in the y-position.</param>
public void Offset(int offsetX, int offsetY)
public void Offset(float offsetX, float offsetY)
{
X += offsetX;
Y += offsetY;
Expand All @@ -276,7 +276,7 @@ public void Offset(int offsetX, int offsetY)
/// <summary>Pushes the edges of the Rectangle out by the horizontal and vertical values specified.</summary>
/// <param name="horizontalAmount">Value to push the sides out by.</param>
/// <param name="verticalAmount">Value to push the top and bottom out by.</param>
public void Inflate(int horizontalAmount, int verticalAmount)
public void Inflate(float horizontalAmount, float verticalAmount)
{
X -= horizontalAmount;
Y -= verticalAmount;
Expand Down

0 comments on commit 4fc393b

Please sign in to comment.