Ivan Gyurdiev : wined3d: Improve GetAdapterMonitor stub.
Module: wine Branch: refs/heads/master Commit: ed9848930b3acd81f507c6d24b941b604ede8978 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ed9848930b3acd81f507c6d2... Author: Ivan Gyurdiev <ivg231(a)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
participants (1)
-
Alexandre Julliard