Skip to content

Commit aa04b29

Browse files
committed
Windows - fix #25
1 parent f6c738b commit aa04b29

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "5.0.101"
3+
"version": "5.0"
44
},
55
"msbuild-sdks": {
66
"MSBuild.Sdk.Extras": "3.0.22"

src/Interstellar.WindowsCommon.Chromium/Platform.fs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ type Platform private() =
3030
Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase, (if Environment.Is64BitProcess then "x64" else "x86"), assemblyName)
3131

3232
static member private InitAnyCpuCefSharp () =
33+
// Required to fix high DPI issue: https://github.com/fsprojects/Interstellar/issues/25
34+
Cef.EnableHighDPISupport()
35+
3336
let browserSubpath = Platform.GetPlatformAssemblyPath("CefSharp.BrowserSubprocess.exe")
3437
let settings = new CefSettings(BrowserSubprocessPath = browserSubpath)
3538
//settings.RegisterExtension Browser.bridgeExtension

0 commit comments

Comments
 (0)