Henri Verbeet : wined3d: Use the context' s window handle in IWineD3DSurfaceImpl_BltOverride().

Alexandre Julliard julliard at winehq.org
Tue Mar 16 11:49:15 CDT 2010


Module: wine
Branch: master
Commit: 0ae49c35fbb63e9f3b3d9cbbe3ccb7e60b783f7c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0ae49c35fbb63e9f3b3d9cbbe3ccb7e60b783f7c

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Mar 15 21:07:27 2010 +0100

wined3d: Use the context's window handle in IWineD3DSurfaceImpl_BltOverride().

---

 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;




More information about the wine-cvs mailing list