user32/tests: Fix GetSystemMetrics test on Win8.

This commit is contained in:
André Hentschel 2013-11-12 00:10:22 +01:00 committed by Alexandre Julliard
parent b6b9050d58
commit 2209fdbdd2
1 changed files with 6 additions and 4 deletions

View File

@ -2786,10 +2786,12 @@ static void test_GetSystemMetrics( void)
screen.cx = GetSystemMetrics( SM_CXSCREEN ); screen.cx = GetSystemMetrics( SM_CXSCREEN );
screen.cy = GetSystemMetrics( SM_CYSCREEN ); screen.cy = GetSystemMetrics( SM_CYSCREEN );
} }
ok_gsm_2( SM_CXMAXTRACK, screen.cx + 4 + 2 * GetSystemMetrics(SM_CXFRAME), ok_gsm_3( SM_CXMAXTRACK, screen.cx + 4 + 2 * GetSystemMetrics(SM_CXFRAME),
screen.cx - 4 + 2 * GetSystemMetrics(SM_CXFRAME)); /* Vista */ screen.cx - 4 + 2 * GetSystemMetrics(SM_CXFRAME), /* Vista */
ok_gsm_2( SM_CYMAXTRACK, screen.cy + 4 + 2 * GetSystemMetrics(SM_CYFRAME), screen.cx + 2 * GetSystemMetrics(SM_CXFRAME)); /* Win8 */
screen.cy - 4 + 2 * GetSystemMetrics(SM_CYFRAME)); /* Vista */ ok_gsm_3( SM_CYMAXTRACK, screen.cy + 4 + 2 * GetSystemMetrics(SM_CYFRAME),
screen.cy - 4 + 2 * GetSystemMetrics(SM_CYFRAME), /* Vista */
screen.cy + 2 * GetSystemMetrics(SM_CYFRAME)); /* Win8 */
/* the next two cannot really be tested as they depend on (application) /* the next two cannot really be tested as they depend on (application)
* toolbars */ * toolbars */
/* SM_CXMAXIMIZED */ /* SM_CXMAXIMIZED */