Commit 72644bb6 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Switch to the window DPI awareness to process WM_GETMINMAXINFO.

parent 0da23418
......@@ -748,6 +748,7 @@ static void WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow )
*/
MINMAXINFO WINPOS_GetMinMaxInfo( HWND hwnd )
{
DPI_AWARENESS_CONTEXT context;
MINMAXINFO MinMax;
HMONITOR monitor;
INT xinc, yinc;
......@@ -757,6 +758,8 @@ MINMAXINFO WINPOS_GetMinMaxInfo( HWND hwnd )
RECT rc;
WND *win;
context = SetThreadDpiAwarenessContext( GetWindowDpiAwarenessContext( hwnd ));
/* Compute default values */
GetWindowRect(hwnd, &rc);
......@@ -842,6 +845,7 @@ MINMAXINFO WINPOS_GetMinMaxInfo( HWND hwnd )
MinMax.ptMaxTrackSize.y = max( MinMax.ptMaxTrackSize.y,
MinMax.ptMinTrackSize.y );
SetThreadDpiAwarenessContext( context );
return MinMax;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment