From d1e8c7cf032e9b795d620b9d90830d330b3d5763 Mon Sep 17 00:00:00 2001 From: wixoa Date: Tue, 9 Jan 2024 23:58:20 -0500 Subject: [PATCH] Set `display.windowmode` cvar to 0 in pre-init (#1614) --- OpenDreamClient/EntryPoint.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenDreamClient/EntryPoint.cs b/OpenDreamClient/EntryPoint.cs index 1f4fa8484e..59c831e9e6 100644 --- a/OpenDreamClient/EntryPoint.cs +++ b/OpenDreamClient/EntryPoint.cs @@ -27,6 +27,11 @@ public sealed class EntryPoint : GameClient { public override void PreInit() { var config = IoCManager.Resolve(); + + // We share settings with other RT games, such as SS14. + // SS14 supports fullscreen, but it breaks us horribly. This disables fullscreen if it's already set. + config.SetCVar(CVars.DisplayWindowMode, 0); + if (config.GetCVar(OpenDreamCVars.SpoofIEUserAgent)) { config.OverrideDefault(WCVars.WebUserAgentOverride, UserAgent); }