Commit cd99d08a authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

uxtheme: Initialize system metrics in 96 DPI.

parent af48d90a
......@@ -733,12 +733,18 @@ struct PARSENONCLIENTSTATE
static inline void parse_init_nonclient (struct PARSENONCLIENTSTATE* state)
{
DPI_AWARENESS_CONTEXT old_context;
old_context = SetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT_UNAWARE);
memset (state, 0, sizeof (*state));
state->metrics.cbSize = sizeof (NONCLIENTMETRICSW);
SystemParametersInfoW (SPI_GETNONCLIENTMETRICS, sizeof (NONCLIENTMETRICSW),
&state->metrics, 0);
SystemParametersInfoW (SPI_GETICONTITLELOGFONT, sizeof (LOGFONTW),
&state->iconTitleFont, 0);
SetThreadDpiAwarenessContext(old_context);
}
static BOOL parse_handle_nonclient_font (struct PARSENONCLIENTSTATE* state,
......
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