Skip to content

Commit

Permalink
Fix statue points
Browse files Browse the repository at this point in the history
  • Loading branch information
C1rdec committed Jun 16, 2023
1 parent c405235 commit 05cc532
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 161 deletions.
6 changes: 5 additions & 1 deletion LilithLurker/Converters/MarginConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ public object Convert(object value, Type targetType, object parameter, CultureIn

var scaleX = source.CompositionTarget.TransformToDevice.M11;
var scaleY = source.CompositionTarget.TransformToDevice.M22;

if (value is Position position)
{
return new Thickness(position.Left / scaleX, position.Top / scaleY, 0, 0);
var left = (position.Left / scaleX) - 5;
var top = (position.Top / scaleY) - 5;

return new Thickness(left, top, 0, 0);
}

return null;
Expand Down
Loading

0 comments on commit 05cc532

Please sign in to comment.