Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat: (macOS) Add default NativeOrientation
  • Loading branch information
ajpinedam committed Apr 14, 2020
1 parent e4e715e commit dfd6cea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Uno.UWP/Graphics/Display/DisplayInformation.macOS.cs
Expand Up @@ -13,6 +13,7 @@ private void UpdateProperties()
{
UpdateLogicalProperties();
UpdateRawProperties();
UpdateNativeOrientation();
}

private void UpdateLogicalProperties()
Expand All @@ -33,5 +34,13 @@ private void UpdateRawProperties()
ScreenWidthInRawPixels = (uint)(screenSize.Width * scale);
RawPixelsPerViewPixel = NSScreen.MainScreen.BackingScaleFactor;
}

/// <summary>
/// Sets the NativeOrientation property
/// </summary>
private void UpdateNativeOrientation()
{
NativeOrientation = DisplayOrientations.Landscape;
}
}
}

0 comments on commit dfd6cea

Please sign in to comment.