I'm using Monogame to create a simple game.
In my Game1 class initializer I set this:
Graphics.PreferredBackBufferWidth = 1280;
Graphics.PreferredBackBufferHeight = 1024;
Graphics.ApplyChanges();
My screen resolution is 2560x1600, so the window should be relatively small on startup. However, it's filling the entire screen and more. Why is that? I'm new to this so I have no idea what other information you might need to help me.
Thanks
EDIT: Okay, it had something to do with me messing with the Configuration Manager. There, I tried adding x64 support (no idea, if that's necessary). I'm not sure what I did there, though. I thought I deleted everything I added. However, after reverting the project to the last commit, the problem is gone. What happened there? Any ideas?
dpiAware=true
setting. If you're using ConfigurationManager in a way that bypasses the default app configuration,dpiAware
will be default to false if your own configuration doesn't set it. – Jimmy Apr 23 '18 at 19:26