wined3d: Correct the software cursor position if the app is running in windowed mode.
This commit is contained in:
parent
1635da4b46
commit
3447c21f22
|
@ -175,6 +175,9 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
|
|||
/* DDBLT_KEYSRC will cause BltOverride to enable the alpha test with GL_NOTEQUAL, 0.0,
|
||||
* which is exactly what we want :-)
|
||||
*/
|
||||
if (This->presentParms.Windowed) {
|
||||
MapWindowPoints(NULL, This->win_handle, (LPPOINT)&destRect, 2);
|
||||
}
|
||||
IWineD3DSurface_Blt(This->backBuffer[0], &destRect, (IWineD3DSurface *) &cursor, NULL, DDBLT_KEYSRC, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue