Skip to content

Commit 911894b

Browse files
committed
Remove dpiAware tag from app.manifest for both WinForms example and BrowserSubProcess
Use new CefEnableHighDPISupport method for on all processes
1 parent 86b5c54 commit 911894b

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

CefSharp.BrowserSubprocess.Core/CefAppWrapper.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,10 @@ namespace CefSharp
4848

4949
virtual void OnBrowserCreated(CefBrowserWrapper^ cefBrowserWrapper) abstract;
5050
virtual void OnBrowserDestroyed(CefBrowserWrapper^ cefBrowserWrapper) abstract;
51+
52+
static void EnableHighDPISupport()
53+
{
54+
CefEnableHighDPISupport();
55+
}
5156
};
5257
}

CefSharp.BrowserSubprocess/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ public static int Main(string[] args)
1515
{
1616
Kernel32.OutputDebugString("BrowserSubprocess starting up with command line: " + String.Join("\n", args));
1717

18+
CefAppWrapper.EnableHighDPISupport();
19+
1820
int result;
1921

2022
using (var subprocess = Create(args))

CefSharp.BrowserSubprocess/app.manifest

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@
2727
</security>
2828
</trustInfo>
2929

30-
<asmv3:application>
31-
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
32-
<dpiAware>true</dpiAware>
33-
</asmv3:windowsSettings>
34-
</asmv3:application>
35-
3630
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
3731
<application>
3832
<!-- A list of all Windows versions that this application is designed to work with.

CefSharp.WinForms.Example/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ public static int Main(string[] args)
1616
{
1717
const bool simpleSubProcess = false;
1818

19+
Cef.EnableHighDPISupport();
20+
1921
//NOTE: Using a simple sub processes uses your existing application executable to spawn instances of the sub process.
2022
//Features like JSB, EvaluateScriptAsync, custom schemes require the CefSharp.BrowserSubprocess to function
2123
if (simpleSubProcess)

CefSharp.WinForms.Example/app.manifest

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@
3434
</security>
3535
</trustInfo>
3636

37-
<asmv3:application>
38-
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
39-
<dpiAware>true</dpiAware>
40-
</asmv3:windowsSettings>
41-
</asmv3:application>
42-
4337
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
4438
<application>
4539
<!-- A list of all Windows versions that this application is designed to work with.

0 commit comments

Comments
 (0)