wined3d: Correct the software cursor position if the app is running in windowed mode.

This commit is contained in:
Karsten Elfenbein 2006-10-19 18:45:17 +02:00 committed by Alexandre Julliard
parent 1635da4b46
commit 3447c21f22
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}