mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Fix shape positioning on layer LED selection change
This commit is contained in:
1 parent
cd1b75750e
commit
f57aca3475
14 files changed
+89
-50
No files matched your search
@@ -179,8 +179,7 @@ namespace Artemis.Core.Models.Profile
|
||||
// Translation originates from the unscaled center of the shape and is tied to the anchor
|
||||
var x = position.X * AbsoluteRectangle.Width - LayerShape.RenderRectangle.Width / 2 - relativeAnchor.X;
|
||||
var y = position.Y * AbsoluteRectangle.Height - LayerShape.RenderRectangle.Height / 2 - relativeAnchor.Y;
|
||||
|
||||
|
||||
|
||||
canvas.RotateDegrees(rotation, anchor.X, anchor.Y);
|
||||
canvas.Scale(size.Width, size.Height, anchor.X, anchor.Y);
|
||||
canvas.Translate(x, y);
|
||||
|
||||
Reference in new issue
Block a user