I'm using Windows 10 1709 and I have a FHD display on which I set scaling to 125%.
When using GDI scaling in my C# application using CefSharp 69.0.0, I get a weird rendering as can be seen in the following image. It's based on the CefSharp.MinimalExample.WinForms application.
I have enabled GDI scaling using the following lines in my app.manifest.
- Code: Select all
<asmv3:application>
<asmv3:windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<gdiScaling xmlns="http://schemas.microsoft.com/SMI/2017/WindowsSettings">true</gdiScaling>
</asmv3:windowsSettings>
</asmv3:application>
I'm also calling the following code.
- Code: Select all
Cef.EnableHighDPISupport();
...
Cef.Initialize(settings, true, null);
When using a display scaling of 100% everything looks normal. Does anyone have an idea why this happens? Thank you!