Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Borghetti <bdiego@gmail.com>2007-12-31 09:19:04 +0300
committerDiego Borghetti <bdiego@gmail.com>2007-12-31 09:19:04 +0300
commit59751edadd13b9480f06451be889c8aaebc77f8e (patch)
tree08644f627cdedec72b422fb10e86fdaeb0fd6b44
parent8814476714ca3f6d7b327960c68e620482d707cb (diff)
Fix bad argument order to XTranslateCoordinates.
Take me a long time catch this :/ and i really don't know how this work before, because clientToScreen always return bad values.
-rw-r--r--intern/ghost/intern/GHOST_WindowX11.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp
index 30fa30e59e6..c628035c15d 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 {
- // not sure about this one!
+ // Now, this is correct!
int ax,ay;
Window temp;
XTranslateCoordinates(
m_display,
- RootWindow(m_display, m_visual->screen),
m_window,
+ RootWindow(m_display, m_visual->screen),
inX,
inY,
&ax,