Skip to content

Commit d3a2da4

Browse files
committed
ClickOnce - Load CefSharp.dll from parent directory if not in current directory
Still not loading, move the EnableHighDPISupport into internal method Follow up to aee97e6
1 parent 8713e74 commit d3a2da4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CefSharp.BrowserSubprocess/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ public static int Main(string[] args)
2121
{
2222
Debug.WriteLine("BrowserSubprocess starting up with command line: " + string.Join("\n", args));
2323

24-
SubProcess.EnableHighDPISupport();
25-
2624
if(!System.IO.File.Exists("CefSharp.dll") && System.IO.File.Exists("..\\CefSharp.dll"))
2725
{
2826
//For publshing ClickOnce AnyCPU CefSharp.dll isn't included in the x64 build
@@ -37,6 +35,8 @@ public static int Main(string[] args)
3735
[MethodImpl(MethodImplOptions.NoInlining)]
3836
private static int MainInternal(string[] args)
3937
{
38+
SubProcess.EnableHighDPISupport();
39+
4040
//Add your own custom implementation of IRenderProcessHandler here
4141
IRenderProcessHandler handler = null;
4242

0 commit comments

Comments
 (0)