From ab2d9520a6d666204caa6b9510f209edda2fd1bf Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 11 Jan 2007 14:53:34 +0000 Subject: [PATCH] Fixed the setWindowSize so that it sets the input range to 0,0,width,height rather than x,y,x+width,y+height as mouse coordinates move relative to the window, not the screens origin. --- src/osgGA/GUIEventAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgGA/GUIEventAdapter.cpp b/src/osgGA/GUIEventAdapter.cpp index 29d45224f..5ad47e894 100644 --- a/src/osgGA/GUIEventAdapter.cpp +++ b/src/osgGA/GUIEventAdapter.cpp @@ -79,7 +79,7 @@ void GUIEventAdapter::setWindowRectangle(int x, int y, int width, int height, bo if (updateMouseRange) { - setInputRange(x, y, x+width, y+height); + setInputRange(0, 0, width, height); } }