private void ApplyVideoMode() { Form owner = Gorgon.Screen.OwnerForm; Gorgon.Stop(); Gorgon.SetMode(owner, (int)ConfigurationManager.GetDisplayWidth(), (int)ConfigurationManager.GetDisplayHeight(), BackBufferFormats.BufferRGB888, !ConfigurationManager.GetFullscreen(), false, false, (int)ConfigurationManager.GetDisplayRefresh(), (ConfigurationManager.GetVsync() ? VSyncIntervals.IntervalOne : VSyncIntervals.IntervalNone)); if (!ConfigurationManager.GetFullscreen()) { //Gee thanks gorgon for changing this stuff only when switching TO fullscreen. owner.FormBorderStyle = FormBorderStyle.Sizable; owner.WindowState = FormWindowState.Normal; owner.ControlBox = true; owner.MaximizeBox = true; owner.MinimizeBox = true; } Gorgon.Go(); }