[wined3d] windowed mode software cursor position (try 3)
Alexandre Julliard
julliard at winehq.org
Thu Oct 19 06:46:40 CDT 2006
"Karsten Elfenbein" <kelfe at gmx.de> writes:
> @@ -175,6 +175,17 @@ static HRESULT WINAPI IWineD3DSwapChainI
> /* 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) {
> + WINDOWPLACEMENT wpl;
> + if (GetWindowPlacement(This->win_handle,&wpl)) {
> + destRect.left -= wpl.rcNormalPosition.left;
> + destRect.right -= wpl.rcNormalPosition.left;
> + destRect.top -= wpl.rcNormalPosition.top;
> + destRect.bottom -= wpl.rcNormalPosition.top;
> + } else {
> + FIXME("could not get window position for cursor position correction\n");
> + }
GetWindowPlacement is not the right function to use. You probably want
MapWindowPoints.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list