"Karsten Elfenbein" kelfe@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.