wined3d: Use the context's window handle in IWineD3DSurfaceImpl_BltOverride().
This commit is contained in:
parent
7b0b16fafe
commit
0ae49c35fb
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue