File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -360,15 +360,15 @@ private void AdjustPositionForResolutionChange()
360
360
361
361
var ratio = screenBound / _settings . PreviousScreen ;
362
362
363
- var dpiXRatio = currentDpi / _settings . PreviousDpi ;
363
+ var dpiRatio = currentDpi / _settings . PreviousDpi ;
364
364
365
- var newPosition = previousPosition * ratio * dpiXRatio ;
365
+ var newPosition = previousPosition * ratio * dpiRatio ;
366
366
367
- Point2D screenPosition = ( SystemParameters . VirtualScreenLeft , SystemParameters . VirtualScreenTop ) ;
367
+ Point2D minPosition = ( SystemParameters . VirtualScreenLeft , SystemParameters . VirtualScreenTop ) ;
368
368
369
- var maxPosition = screenPosition + screenBound - ( ActualWidth , ActualHeight ) ;
369
+ var maxPosition = minPosition + screenBound - ( ActualWidth , ActualHeight ) ;
370
370
371
- ( Left , Top ) = newPosition . Clamp ( screenPosition , maxPosition ) ;
371
+ ( Left , Top ) = newPosition . Clamp ( minPosition , maxPosition ) ;
372
372
}
373
373
374
374
private Point2D GetDpi ( )
You can’t perform that action at this time.
0 commit comments