Add partial support for Windows 8.1 per-monitor DPI

Related to #235.
This commit is contained in:
Camilla Berglund
2015-11-01 17:29:13 +01:00
parent 6a41d5e7ad
commit 9f3636a103
4 changed files with 49 additions and 1 deletions
+13
View File
@@ -584,6 +584,19 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
break;
}
case WM_DPICHANGED:
{
RECT* rect = (RECT*) lParam;
SetWindowPos(window->win32.handle,
HWND_TOP,
rect->left,
rect->top,
rect->right - rect->left,
rect->bottom - rect->top,
SWP_NOACTIVATE | SWP_NOZORDER);
break;
}
case WM_DEVICECHANGE:
{
if (DBT_DEVNODES_CHANGED == wParam)