mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix a variable name
This commit is contained in:
parent
7953ad8962
commit
feaf6c45c1
1 changed files with 5 additions and 5 deletions
|
|
@ -360,15 +360,15 @@ namespace Flow.Launcher
|
||||||
|
|
||||||
var ratio = screenBound / _settings.PreviousScreen;
|
var ratio = screenBound / _settings.PreviousScreen;
|
||||||
|
|
||||||
var dpiXRatio = currentDpi / _settings.PreviousDpi;
|
var dpiRatio = currentDpi / _settings.PreviousDpi;
|
||||||
|
|
||||||
var newPosition = previousPosition * ratio * dpiXRatio;
|
var newPosition = previousPosition * ratio * dpiRatio;
|
||||||
|
|
||||||
Point2D screenPosition = (SystemParameters.VirtualScreenLeft, SystemParameters.VirtualScreenTop);
|
Point2D minPosition = (SystemParameters.VirtualScreenLeft, SystemParameters.VirtualScreenTop);
|
||||||
|
|
||||||
var maxPosition = screenPosition + screenBound - (ActualWidth, ActualHeight);
|
var maxPosition = minPosition + screenBound - (ActualWidth, ActualHeight);
|
||||||
|
|
||||||
(Left, Top) = newPosition.Clamp(screenPosition, maxPosition);
|
(Left, Top) = newPosition.Clamp(minPosition, maxPosition);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Point2D GetDpi()
|
private Point2D GetDpi()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue