[PATCH 06/10] wined3d: Use the context's window handle in IWineD3DSurfaceImpl_BltOverride().

Henri Verbeet hverbeet at codeweavers.com
Mon Mar 15 15:07:27 CDT 2010


---
 dlls/wined3d/surface.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 5f5be60..74c84bd 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3973,8 +3973,8 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, const
             RECT windowsize;
             POINT offset = {0,0};
             UINT h;
-            ClientToScreen(dstSwapchain->win_handle, &offset);
-            GetClientRect(dstSwapchain->win_handle, &windowsize);
+            ClientToScreen(context->win_handle, &offset);
+            GetClientRect(context->win_handle, &windowsize);
             h = windowsize.bottom - windowsize.top;
             rect.x1 -= offset.x; rect.x2 -=offset.x;
             rect.y1 -= offset.y; rect.y2 -=offset.y;
-- 
1.6.4.4




More information about the wine-patches mailing list