Skip to content

Commit 6d686b2

Browse files
committed
Fix macOS scaling size
1 parent 60fcf61 commit 6d686b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v2rayN/v2rayN.Desktop/Base/WindowBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected virtual void OnLoaded(object? sender, RoutedEventArgs e)
3030
Height = sizeItem.Height;
3131

3232
var workingArea = (Screens.ScreenFromWindow(this) ?? Screens.Primary).WorkingArea;
33-
var scaling = VisualRoot?.RenderScaling ?? 1.0;
33+
var scaling = (Utils.IsOSX() ? null : VisualRoot?.RenderScaling) ?? 1.0;
3434

3535
var x = workingArea.X + ((workingArea.Width - (Width * scaling)) / 2);
3636
var y = workingArea.Y + ((workingArea.Height - (Height * scaling)) / 2);

0 commit comments

Comments
 (0)