[X11DRV] Fix Diablo2 video test for D3D

Lionel Ulmer lionel.ulmer at free.fr
Fri Nov 25 14:08:19 CST 2005


In Desktop mode, '0' was stored for the display frequency (thus leading some
games to fail as they were not able to find a matching mode). So handle '0'
as some sort of 'wildcard' that matches all frequencies.

This enables D2 to work again in D3D mode.

      Lionel

Changelog:
  Ignore frequency requests in Desktop mode

-- 
		 Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
Index: dlls/x11drv/settings.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/settings.c,v
retrieving revision 1.4
diff -u -r1.4 settings.c
--- dlls/x11drv/settings.c	2 Nov 2005 10:54:42 -0000	1.4
+++ dlls/x11drv/settings.c	25 Nov 2005 20:07:29 -0000
@@ -277,7 +277,7 @@
             if (devmode->dmPelsHeight != dd_modes[i].dwHeight)
                 continue;
         }
-        if (devmode->dmFields & DM_DISPLAYFREQUENCY)
+        if ((devmode->dmFields & DM_DISPLAYFREQUENCY) && (dd_modes[i].wRefreshRate != 0))
         {
             if (devmode->dmDisplayFrequency != dd_modes[i].wRefreshRate)
                 continue;


More information about the wine-patches mailing list