Revision: 23822
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23822
Author:   damien78
Date:     2009-10-14 10:24:40 +0200 (Wed, 14 Oct 2009)

Log Message:
-----------
Cocoa : bugfix on continuous grab (cursor was returning to a wrong position  
upon button grab end)

Modified Paths:
--------------
    trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm

Modified: trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm      2009-10-14 
06:08:48 UTC (rev 23821)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm      2009-10-14 
08:24:40 UTC (rev 23822)
@@ -873,7 +873,10 @@
                                setCursorWarpAccum(-x_new, -y_new);
                        }
                        else {
-                               
m_systemCocoa->setCursorPosition(m_cursorWarpInitPos[0], 
m_cursorWarpInitPos[1]);
+                               GHOST_TInt32 x_new, y_new;
+                               //get/set cursor position works in screen 
coordinates
+                               clientToScreen(m_cursorWarpInitPos[0], 
m_cursorWarpInitPos[1], x_new, y_new);
+                               m_systemCocoa->setCursorPosition(x_new, y_new);
                                setCursorWarpAccum(0, 0);
                        }
                        


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to