Commit 0ae49c35 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 7b0b16fa
...@@ -3973,8 +3973,8 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, const ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment