Commit ee3f0602 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

user32: Change IsProcessDPIAware() to always return TRUE.

This mimics Windows' behaviour when the 'Use Windows XP style DPI scaling' box is ticked. Since we don't have a DPI scaler, this makes most sense. Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 3d47809a
......@@ -2910,10 +2910,9 @@ BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR lpszDeviceName, DWORD iModeNum,
/***********************************************************************
* SetProcessDPIAware (USER32.@)
*/
BOOL WINAPI SetProcessDPIAware( VOID )
BOOL WINAPI SetProcessDPIAware(void)
{
FIXME( "stub!\n");
TRACE("\n");
return TRUE;
}
......@@ -2922,8 +2921,8 @@ BOOL WINAPI SetProcessDPIAware( VOID )
*/
BOOL WINAPI IsProcessDPIAware(void)
{
FIXME( "stub!\n");
return FALSE;
TRACE("returning TRUE\n");
return TRUE;
}
/**********************************************************************
......
......@@ -2976,6 +2976,26 @@ static void test_GetSysColorBrush(void)
win_skip("COLOR_MENUBAR unsupported\n");
}
static void test_dpi_aware(void)
{
BOOL ret;
if (!pIsProcessDPIAware)
{
win_skip("IsProcessDPIAware not available\n");
return;
}
ret = pSetProcessDPIAware();
ok(ret, "got %d\n", ret);
ret = pIsProcessDPIAware();
ok(ret, "got %d\n", ret);
dpi = real_dpi;
test_GetSystemMetrics();
}
START_TEST(sysparams)
{
int argc;
......@@ -3040,4 +3060,5 @@ START_TEST(sysparams)
}
ReleaseDC( 0, hdc);
test_dpi_aware();
}
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