Skip to content

Commit

Permalink
Change parameter name to be more meaningful.
Browse files Browse the repository at this point in the history
  • Loading branch information
eiadxp committed Dec 7, 2021
1 parent b7e218c commit d26a9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MahApps.Metro.IconPacks.Core/PackIconCursorHelper.cs
Expand Up @@ -42,8 +42,8 @@ public static Geometry GetCursorGeometry(string pathData, TransformGroup transfo
transformGroup.Children.Add(new TranslateTransform(-rect.X, -rect.Y));

// Apply the requested size.
var d = Math.Min(width / rect.Width, height / rect.Height);
transformGroup.Children.Add(new ScaleTransform(d, d));
var aspectRatio = Math.Min(width / rect.Width, height / rect.Height);
transformGroup.Children.Add(new ScaleTransform(aspectRatio, aspectRatio));


geometry.Freeze();
Expand Down

0 comments on commit d26a9d3

Please sign in to comment.