aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/ShiftOS.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-25 23:25:52 -0400
committerMichael <[email protected]>2017-07-25 23:25:52 -0400
commit68c7de273f4930b54f8504cc777660fc3c68156c (patch)
tree28c0c68b08113ba1ef9ee93d71574c3553efd24f /ShiftOS.Frontend/ShiftOS.cs
parente38da782aaa9398b6659d72cf20588c5418ac9ba (diff)
downloadshiftos_thereturn-68c7de273f4930b54f8504cc777660fc3c68156c.tar.gz
shiftos_thereturn-68c7de273f4930b54f8504cc777660fc3c68156c.tar.bz2
shiftos_thereturn-68c7de273f4930b54f8504cc777660fc3c68156c.zip
resolution settings
Diffstat (limited to 'ShiftOS.Frontend/ShiftOS.cs')
-rw-r--r--ShiftOS.Frontend/ShiftOS.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/ShiftOS.Frontend/ShiftOS.cs b/ShiftOS.Frontend/ShiftOS.cs
index cf52b64..51c4e78 100644
--- a/ShiftOS.Frontend/ShiftOS.cs
+++ b/ShiftOS.Frontend/ShiftOS.cs
@@ -24,8 +24,9 @@ namespace ShiftOS.Frontend
public ShiftOS()
{
GraphicsDevice = new GraphicsDeviceManager(this);
- GraphicsDevice.PreferredBackBufferHeight = 1080;
- GraphicsDevice.PreferredBackBufferWidth = 1920;
+ var uconf = Objects.UserConfig.Get();
+ GraphicsDevice.PreferredBackBufferHeight = uconf.ScreenHeight;
+ GraphicsDevice.PreferredBackBufferWidth = uconf.ScreenWidth;
SkinEngine.SkinLoaded += () =>
{
UIManager.ResetSkinTextures(GraphicsDevice.GraphicsDevice);