diff --git a/Program.cs b/Program.cs index a60d8088..409bddac 100644 --- a/Program.cs +++ b/Program.cs @@ -69,6 +69,7 @@ static Program(){ private static void Main(){ Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); + Cef.EnableHighDPISupport(); WindowRestoreMessage = NativeMethods.RegisterWindowMessage("TweetDuckRestore"); SubProcessMessage = NativeMethods.RegisterWindowMessage("TweetDuckSubProcess"); @@ -145,7 +146,6 @@ private static void Main(){ CommandLineArgs.ReadCefArguments(UserConfig.CustomCefArgs).ToDictionary(settings.CefCommandLineArgs); BrowserUtils.SetupCefArgs(settings.CefCommandLineArgs); - Cef.EnableHighDPISupport(); Cef.Initialize(settings, false, new BrowserProcessHandler()); Application.ApplicationExit += (sender, args) => ExitCleanup();