From a3e3d517b030dafc7f6877012c792ff37aead55a Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Wed, 8 Nov 2017 11:39:32 +0100 Subject: [PATCH] Fix high DPI for dialogs displayed before the main window --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();