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

This commit is contained in:
Henri Verbeet 2010-03-15 21:07:27 +01:00 committed by Alexandre Julliard
parent 7b0b16fafe
commit 0ae49c35fb
1 changed files with 2 additions and 2 deletions

View File

@ -3973,8 +3973,8 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, const
RECT windowsize; RECT windowsize;
POINT offset = {0,0}; POINT offset = {0,0};
UINT h; UINT h;
ClientToScreen(dstSwapchain->win_handle, &offset); ClientToScreen(context->win_handle, &offset);
GetClientRect(dstSwapchain->win_handle, &windowsize); GetClientRect(context->win_handle, &windowsize);
h = windowsize.bottom - windowsize.top; h = windowsize.bottom - windowsize.top;
rect.x1 -= offset.x; rect.x2 -=offset.x; rect.x1 -= offset.x; rect.x2 -=offset.x;
rect.y1 -= offset.y; rect.y2 -=offset.y; rect.y1 -= offset.y; rect.y2 -=offset.y;