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

Alexandre Julliard julliard at wine.codeweavers.com
Fri Oct 20 04:45:43 CDT 2006


Module: wine
Branch: master
Commit: 3447c21f227c200e3a99a11a4adb28609948a611
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3447c21f227c200e3a99a11a4adb28609948a611

Author: Karsten Elfenbein <kelfe at gmx.de>
Date:   Thu Oct 19 18:45:17 2006 +0200

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

---

 dlls/wined3d/swapchain.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index ccec8dc..b0bc657 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -175,6 +175,9 @@ 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) {
+            MapWindowPoints(NULL, This->win_handle, (LPPOINT)&destRect, 2);
+        }
         IWineD3DSurface_Blt(This->backBuffer[0], &destRect, (IWineD3DSurface *) &cursor, NULL, DDBLT_KEYSRC, NULL);
     }
 




More information about the wine-cvs mailing list