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;
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue