Zhiyi Zhang : user32/tests: Test changing to a 1Hz display mode.
Alexandre Julliard
julliard at winehq.org
Fri Jun 12 16:01:17 CDT 2020
Module: wine
Branch: master
Commit: 203bd057cf2268f03558be475ce2ba984f93e581
URL: https://source.winehq.org/git/wine.git/?a=commit;h=203bd057cf2268f03558be475ce2ba984f93e581
Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date: Fri Jun 12 15:29:06 2020 +0800
user32/tests: Test changing to a 1Hz display mode.
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/tests/monitor.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/user32/tests/monitor.c b/dlls/user32/tests/monitor.c
index 205df1c293..482e2f1301 100644
--- a/dlls/user32/tests/monitor.c
+++ b/dlls/user32/tests/monitor.c
@@ -257,6 +257,7 @@ struct vid_mode
static const struct vid_mode vid_modes_test[] = {
{1024, 768, 0, 0, DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL | DM_DISPLAYFREQUENCY, 0},
{1024, 768, 0, 0, DM_PELSWIDTH | DM_PELSHEIGHT | DM_DISPLAYFREQUENCY, 1},
+ {1024, 768, 0, 1, DM_PELSWIDTH | DM_PELSHEIGHT | DM_DISPLAYFREQUENCY, 1},
{1024, 768, 0, 0, DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL , 0},
{1024, 768, 0, 0, DM_PELSWIDTH | DM_PELSHEIGHT , 1},
{1024, 768, 0, 0, DM_BITSPERPEL , 0},
@@ -447,6 +448,7 @@ static void test_ChangeDisplaySettingsEx(void)
dm.dmDisplayFrequency = vid_modes_test[i].freq;
dm.dmFields = vid_modes_test[i].fields;
res = ChangeDisplaySettingsExA(NULL, &dm, NULL, CDS_TEST, NULL);
+ todo_wine_if(i == 2)
ok(vid_modes_test[i].must_succeed ?
(res == DISP_CHANGE_SUCCESSFUL || res == DISP_CHANGE_RESTART) :
(res == DISP_CHANGE_SUCCESSFUL || res == DISP_CHANGE_RESTART ||
More information about the wine-cvs
mailing list