We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60fcf61 commit 6d686b2Copy full SHA for 6d686b2
1 file changed
v2rayN/v2rayN.Desktop/Base/WindowBase.cs
@@ -30,7 +30,7 @@ protected virtual void OnLoaded(object? sender, RoutedEventArgs e)
30
Height = sizeItem.Height;
31
32
var workingArea = (Screens.ScreenFromWindow(this) ?? Screens.Primary).WorkingArea;
33
- var scaling = VisualRoot?.RenderScaling ?? 1.0;
+ var scaling = (Utils.IsOSX() ? null : VisualRoot?.RenderScaling) ?? 1.0;
34
35
var x = workingArea.X + ((workingArea.Width - (Width * scaling)) / 2);
36
var y = workingArea.Y + ((workingArea.Height - (Height * scaling)) / 2);
0 commit comments