diff options
author | Diego Borghetti <bdiego@gmail.com> | 2007-12-31 17:28:10 +0300 |
---|---|---|
committer | Diego Borghetti <bdiego@gmail.com> | 2007-12-31 17:28:10 +0300 |
commit | 2d3bbe480c5b693ce5f620cf2ebf9d0d7279d386 (patch) | |
tree | 1a4e457ca8df0ba880168a20ac126b44010cd8b8 | |
parent | 63d2208319404ce1e9c793c92a72d05210d2fe52 (diff) |
I got confused screenToClient with clientToScreen.
Sorry, i get the wrong value because a print the
wrong variable :/
-rw-r--r-- | intern/ghost/intern/GHOST_WindowX11.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp index c628035c15d..544222e814f 100644 --- a/intern/ghost/intern/GHOST_WindowX11.cpp +++ b/intern/ghost/intern/GHOST_WindowX11.cpp @@ -565,15 +565,15 @@ screenToClient( GHOST_TInt32& outX, GHOST_TInt32& outY ) const { - // Now, this is correct! + // This is correct! int ax,ay; Window temp; XTranslateCoordinates( m_display, - m_window, RootWindow(m_display, m_visual->screen), + m_window, inX, inY, &ax, |