Francois Gouget : ddraw/tests: Fix the refresh rate test when running with the Windows 'Standard VGA' driver.

Alexandre Julliard julliard at winehq.org
Wed Feb 20 14:01:14 CST 2013


Module: wine
Branch: master
Commit: 3e6d0a373d38b84efe26506348005346838fd702
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3e6d0a373d38b84efe26506348005346838fd702

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Wed Feb 20 00:14:40 2013 +0100

ddraw/tests: Fix the refresh rate test when running with the Windows 'Standard VGA' driver.

---

 dlls/ddraw/tests/ddrawmodes.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/ddraw/tests/ddrawmodes.c b/dlls/ddraw/tests/ddrawmodes.c
index 82fae5b..68deea4a 100644
--- a/dlls/ddraw/tests/ddrawmodes.c
+++ b/dlls/ddraw/tests/ddrawmodes.c
@@ -473,7 +473,10 @@ static void enumdisplaymodes(void)
 
     modes16bpp_cnt = 0;
     ddsd.dwFlags = DDSD_PIXELFORMAT | DDSD_REFRESHRATE;
-    U2(ddsd).dwRefreshRate = 1;
+    /* Ask for a refresh rate that could not possibly be used. But note that
+     * the Windows 'Standard VGA' driver claims to run the display at 1Hz!
+     */
+    U2(ddsd).dwRefreshRate = 2;
 
     rc = IDirectDraw_EnumDisplayModes(lpDD, 0, &ddsd, 0, enummodescallback_16bit);
     ok(rc==DD_OK,"EnumDisplayModes returned: %x\n",rc);




More information about the wine-cvs mailing list