Ivan Gyurdiev : wined3d: Improve GetAdapterMonitor stub.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 11 11:03:09 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: ed9848930b3acd81f507c6d24b941b604ede8978
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=ed9848930b3acd81f507c6d24b941b604ede8978

Author: Ivan Gyurdiev <ivg231 at gmail.com>
Date:   Mon Jul 10 20:32:47 2006 -0600

wined3d: Improve GetAdapterMonitor stub.

---

 dlls/wined3d/directx.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index d9bb59c..dea1cef 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -820,11 +820,14 @@ static HRESULT  WINAPI IWineD3DImpl_Regi
 
 static HMONITOR WINAPI IWineD3DImpl_GetAdapterMonitor(IWineD3D *iface, UINT Adapter) {
     IWineD3DImpl *This = (IWineD3DImpl *)iface;
-    FIXME_(d3d_caps)("(%p)->(Adptr:%d)\n", This, Adapter);
+    POINT pt = { -1, -1 };
+
     if (Adapter >= IWineD3DImpl_GetAdapterCount(iface)) {
         return NULL;
     }
-    return WINED3D_OK;
+
+    FIXME_(d3d_caps)("(%p): returning the primary monitor for adapter %d\n", This, Adapter);
+    return MonitorFromPoint(pt, MONITOR_DEFAULTTOPRIMARY);
 }
 
 /* FIXME: GetAdapterModeCount and EnumAdapterModes currently only returns modes




More information about the wine-cvs mailing list