DDraw RefreshRate Patchy :)

Dylan Taft soundmanok at yahoo.com
Sun Apr 24 07:55:04 CDT 2005


This patch fixes a little bug.   For some reason, we
wern't setting the display frequency, so ddraw
programs were unable to change refresh rates.  That
was so annoying.  Now they can. Buhaha.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
Index: user.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/ddraw/user.c,v
retrieving revision 1.23
diff -u -p -r1.23 user.c
--- user.c	7 Mar 2005 11:01:10 -0000	1.23
+++ user.c	24 Apr 2005 12:51:18 -0000
@@ -502,10 +502,11 @@ User_DirectDraw_SetDisplayMode(LPDIRECTD
     LONG pitch;
 
     TRACE("(%p)->(%ldx%ldx%ld,%ld Hz,%08lx)\n",This,dwWidth,dwHeight,dwBPP,dwRefreshRate,dwFlags);
-    devmode.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT;
+    devmode.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT | DM_DISPLAYFREQUENCY;
     devmode.dmBitsPerPel = dwBPP;
     devmode.dmPelsWidth  = dwWidth;
     devmode.dmPelsHeight = dwHeight;
+    devmode.dmDisplayFrequency = dwRefreshRate; 
     if (ChangeDisplaySettingsExW(NULL, &devmode, NULL, CDS_FULLSCREEN, NULL) != DISP_CHANGE_SUCCESSFUL)
 	return DDERR_INVALIDMODE;
 


More information about the wine-patches mailing list