forked from bartvdbraak/blender
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.
This commit is contained in:
parent
8814476714
commit
59751edadd
@ -565,15 +565,15 @@ screenToClient(
|
|||||||
GHOST_TInt32& outX,
|
GHOST_TInt32& outX,
|
||||||
GHOST_TInt32& outY
|
GHOST_TInt32& outY
|
||||||
) const {
|
) const {
|
||||||
// not sure about this one!
|
// Now, this is correct!
|
||||||
|
|
||||||
int ax,ay;
|
int ax,ay;
|
||||||
Window temp;
|
Window temp;
|
||||||
|
|
||||||
XTranslateCoordinates(
|
XTranslateCoordinates(
|
||||||
m_display,
|
m_display,
|
||||||
RootWindow(m_display, m_visual->screen),
|
|
||||||
m_window,
|
m_window,
|
||||||
|
RootWindow(m_display, m_visual->screen),
|
||||||
inX,
|
inX,
|
||||||
inY,
|
inY,
|
||||||
&ax,
|
&ax,
|
||||||
|
Loading…
Reference in New Issue
Block a user