webview_mshtml.c: EnableDpiAwareness moved upper

This commit is contained in:
Giovanni Patruno
2019-12-30 00:45:42 +01:00
committed by Richard Hozák
parent 0e4ef40e0c
commit 5353c0486f

View File

@@ -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);