mirror of
https://github.com/tauri-apps/web-view.git
synced 2026-02-04 02:11:18 +01:00
webview_mshtml.c: EnableDpiAwareness moved upper
This commit is contained in:
committed by
Richard Hozák
parent
0e4ef40e0c
commit
5353c0486f
@@ -903,6 +903,7 @@ int webview_init(struct mshtml_webview *wv) {
|
||||
if (oleInitCode != S_OK && oleInitCode != S_FALSE) {
|
||||
return -1;
|
||||
}
|
||||
EnableDpiAwareness();
|
||||
ZeroMemory(&wc, sizeof(WNDCLASSEX));
|
||||
wc.cbSize = sizeof(WNDCLASSEX);
|
||||
wc.hInstance = hInstance;
|
||||
@@ -947,7 +948,6 @@ int webview_init(struct mshtml_webview *wv) {
|
||||
SetWindowLongPtr(wv->priv.hwnd, GWL_STYLE, style);
|
||||
}
|
||||
DisplayHTMLPage(wv);
|
||||
EnableDpiAwareness();
|
||||
|
||||
SetWindowText(wv->priv.hwnd, wv->title);
|
||||
ShowWindow(wv->priv.hwnd, SW_SHOWDEFAULT);
|
||||
|
||||
Reference in New Issue
Block a user