@Ravendarke wrote:
Hi, what's the clean way to setup borderless full screen at resolution that isn't native to the display? Basically looking to undersample game for 4k displays if users wants to.
What I have now:
SCREEN_MANAGER.graphics.PreferredBackBufferWidth = width; SCREEN_MANAGER.graphics.PreferredBackBufferHeight = height; SCREEN_MANAGER.graphics.ApplyChanges(); SCREEN_MANAGER.Resize(); //Handles resize of GUI and RTs form.WindowState = System.Windows.Forms.FormWindowState.Normal; form.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; form.Bounds = new System.Drawing.Rectangle(0, 0, 1920,1200); //placeholder hardset values form.DesktopLocation = new System.Drawing.Point(0, 0);
This pretty much works, however mouse position is off by ration of target resolution and native resolution, other than that it works just fine.
Posts: 1
Participants: 1