From 0ae49c35fbb63e9f3b3d9cbbe3ccb7e60b783f7c Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 15 Mar 2010 21:07:27 +0100 Subject: [PATCH] wined3d: Use the context's window handle in IWineD3DSurfaceImpl_BltOverride(). --- dlls/wined3d/surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 5f5be60dc85..74c84bd5af2 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;