Skip to content

Commit 7534ef6

Browse files
author
Ngo Iok Ui (Wu Yu Wei)
authored
Enable DPI awareness on Windows (webview#526)
1 parent 3d6f70c commit 7534ef6

File tree

3 files changed

+1
-0
lines changed

3 files changed

+1
-0
lines changed

dll/x64/webview.dll

512 Bytes
Binary file not shown.

dll/x86/webview.dll

0 Bytes
Binary file not shown.

webview.h

+1
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,7 @@ class win32_edge_engine {
11001100
m_window = *(static_cast<HWND *>(window));
11011101
}
11021102

1103+
SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE);
11031104
ShowWindow(m_window, SW_SHOW);
11041105
UpdateWindow(m_window);
11051106
SetFocus(m_window);

0 commit comments

Comments
 (0)