Updated for RGB.NET's changes regarding rotation

This commit is contained in:
SpoinkyNL committed 2019-11-21 08:45:38 +01:00
1 parent 97907c97eb
commit 086f2fc1f9
19 files changed
+175 -88

No files matched your search

@@ -7,10 +7,10 @@ namespace Artemis.Core.Extensions
public static Rectangle ToDrawingRectangle(this global::RGB.NET.Core.Rectangle rectangle, double scale)
{
return new Rectangle(
(int) (rectangle.X * scale),
(int) (rectangle.Y * scale),
(int) (rectangle.Width * scale),
(int) (rectangle.Height * scale)
(int) (rectangle.Location.X * scale),
(int) (rectangle.Location.Y * scale),
(int) (rectangle.Size.Width * scale),
(int) (rectangle.Size.Height * scale)
);
}
}