Stefan Dösinger : wined3d: Don' t use WINED3DADAPTER_DEFAULT as refresh rate.
Alexandre Julliard
julliard at winehq.org
Wed Aug 26 10:45:21 CDT 2009
Module: wine
Branch: master
Commit: 21f4e42a9830d78c74ffbf867614a1811a3fc3d5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=21f4e42a9830d78c74ffbf867614a1811a3fc3d5
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Wed Aug 26 10:24:09 2009 +0200
wined3d: Don't use WINED3DADAPTER_DEFAULT as refresh rate.
---
dlls/wined3d/directx.c | 4 ++--
dlls/wined3d/wined3d_private.h | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index c114711..3d287f0 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2191,7 +2191,7 @@ static HRESULT WINAPI IWineD3DImpl_EnumAdapterModes(IWineD3D *iface, UINT Adapte
if (EnumDisplaySettingsExW(NULL, ModeIdx, &DevModeW, 0)) {
pMode->Width = DevModeW.dmPelsWidth;
pMode->Height = DevModeW.dmPelsHeight;
- pMode->RefreshRate = WINED3DADAPTER_DEFAULT;
+ pMode->RefreshRate = DEFAULT_REFRESH_RATE;
if (DevModeW.dmFields & DM_DISPLAYFREQUENCY)
pMode->RefreshRate = DevModeW.dmDisplayFrequency;
@@ -2238,7 +2238,7 @@ static HRESULT WINAPI IWineD3DImpl_GetAdapterDisplayMode(IWineD3D *iface, UINT A
pMode->Width = DevModeW.dmPelsWidth;
pMode->Height = DevModeW.dmPelsHeight;
bpp = DevModeW.dmBitsPerPel;
- pMode->RefreshRate = WINED3DADAPTER_DEFAULT;
+ pMode->RefreshRate = DEFAULT_REFRESH_RATE;
if (DevModeW.dmFields&DM_DISPLAYFREQUENCY)
{
pMode->RefreshRate = DevModeW.dmDisplayFrequency;
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 3627078..e5bd086 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -2495,6 +2495,8 @@ HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetGammaRamp(IWineD3DSwapChain *iface,
struct wined3d_context *IWineD3DSwapChainImpl_CreateContextForThread(IWineD3DSwapChain *iface);
+#define DEFAULT_REFRESH_RATE 0
+
/*****************************************************************************
* Utility function prototypes
*/
More information about the wine-cvs
mailing list