aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/MainMenu.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Frontend/MainMenu.cs')
-rw-r--r--ShiftOS.Frontend/MainMenu.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ShiftOS.Frontend/MainMenu.cs b/ShiftOS.Frontend/MainMenu.cs
index a6d987f..db6ece9 100644
--- a/ShiftOS.Frontend/MainMenu.cs
+++ b/ShiftOS.Frontend/MainMenu.cs
@@ -154,7 +154,7 @@ namespace ShiftOS.Frontend
_optionsSave.Click += () =>
{
- if (UIManager.Viewport != _screenResolutions[_resIndex])
+ if (UIManager.ScreenSize != _screenResolutions[_resIndex])
{
Engine.Infobox.PromptYesNo("Confirm sentience edit", "Performing this operation requires your sentience to be re-established which may cause you to go unconscious. Do you wish to continue?", (sleep) =>
@@ -181,7 +181,7 @@ namespace ShiftOS.Frontend
foreach(var mode in GraphicsAdapter.DefaultAdapter.SupportedDisplayModes.OrderBy(x=>x.Width * x.Height))
{
_screenResolutions.Add(new System.Drawing.Size(mode.Width, mode.Height));
- if (UIManager.Viewport == _screenResolutions.Last())
+ if (UIManager.ScreenSize == _screenResolutions.Last())
_resIndex = _screenResolutions.Count - 1;
}
_fullscreen.Y = _sandbox.Y;