Fixed typo.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14680 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
1debc21bb2
commit
bb637e73f3
@ -76,7 +76,7 @@ class OSGGA_EXPORT EventQueue : public osg::Referenced
|
||||
const osg::GraphicsContext* getGraphicsContext() const { return getCurrentEventState()->getGraphicsContext(); }
|
||||
|
||||
/** Read the window record dimensions from the graphics context. */
|
||||
void syncWindowRectangleWithGraphcisContext();
|
||||
void syncWindowRectangleWithGraphicsContext();
|
||||
|
||||
|
||||
/** Set the mouse input range.*/
|
||||
|
@ -132,7 +132,7 @@ bool EventQueue::copyEvents(Events& events) const
|
||||
}
|
||||
}
|
||||
|
||||
void EventQueue::syncWindowRectangleWithGraphcisContext()
|
||||
void EventQueue::syncWindowRectangleWithGraphicsContext()
|
||||
{
|
||||
const osg::GraphicsContext::Traits* traits = (getGraphicsContext()!=0) ? getGraphicsContext()->getTraits() : 0;
|
||||
if (traits) _accumulateEventState->setWindowRectangle(traits->x, traits->y, traits->width, traits->height, !_useFixedMouseInputRange);
|
||||
|
@ -565,7 +565,7 @@ bool GraphicsWindowQt::init( QWidget* parent, const QGLWidget* shareWidget, Qt::
|
||||
}
|
||||
|
||||
// make sure the event queue has the correct window rectangle size and input range
|
||||
getEventQueue()->syncWindowRectangleWithGraphcisContext();
|
||||
getEventQueue()->syncWindowRectangleWithGraphicsContext();
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -783,7 +783,7 @@ bool GraphicsWindowQt::realizeImplementation()
|
||||
_realized = true;
|
||||
|
||||
// make sure the event queue has the correct window rectangle size and input range
|
||||
getEventQueue()->syncWindowRectangleWithGraphcisContext();
|
||||
getEventQueue()->syncWindowRectangleWithGraphicsContext();
|
||||
|
||||
// make this window's context not current
|
||||
// note: this must be done as we will probably make the context current from another thread
|
||||
|
@ -253,7 +253,7 @@ void GraphicsWindowCarbon::init()
|
||||
_initialized = true;
|
||||
|
||||
// make sure the event queue has the correct window rectangle size and input range
|
||||
getEventQueue()->syncWindowRectangleWithGraphcisContext();
|
||||
getEventQueue()->syncWindowRectangleWithGraphicsContext();
|
||||
}
|
||||
|
||||
bool GraphicsWindowCarbon::setWindowDecorationImplementation(bool flag)
|
||||
@ -457,7 +457,7 @@ bool GraphicsWindowCarbon::realizeImplementation()
|
||||
_realized = true;
|
||||
|
||||
// make sure the event queue has the correct window rectangle size and input range
|
||||
getEventQueue()->syncWindowRectangleWithGraphcisContext();
|
||||
getEventQueue()->syncWindowRectangleWithGraphicsContext();
|
||||
|
||||
return _realized;
|
||||
}
|
||||
|
@ -1096,7 +1096,7 @@ void GraphicsWindowCocoa::init()
|
||||
_valid = _initialized = true;
|
||||
|
||||
// make sure the event queue has the correct window rectangle size and input range
|
||||
getEventQueue()->syncWindowRectangleWithGraphcisContext();
|
||||
getEventQueue()->syncWindowRectangleWithGraphicsContext();
|
||||
}
|
||||
|
||||
|
||||
@ -1265,7 +1265,7 @@ bool GraphicsWindowCocoa::realizeImplementation()
|
||||
getEventQueue()->getCurrentEventState()->setMouseYOrientation(osgGA::GUIEventAdapter::Y_INCREASING_UPWARDS);
|
||||
|
||||
// make sure the event queue has the correct window rectangle size and input range
|
||||
getEventQueue()->syncWindowRectangleWithGraphcisContext();
|
||||
getEventQueue()->syncWindowRectangleWithGraphicsContext();
|
||||
|
||||
_valid = _initialized = _realized = true;
|
||||
return _valid;
|
||||
|
@ -754,7 +754,7 @@ void GraphicsWindowIOS::init()
|
||||
_valid = _initialized = true;
|
||||
|
||||
// make sure the event queue has the correct window rectangle size and input range
|
||||
getEventQueue()->syncWindowRectangleWithGraphcisContext();
|
||||
getEventQueue()->syncWindowRectangleWithGraphicsContext();
|
||||
}
|
||||
|
||||
|
||||
@ -921,7 +921,7 @@ bool GraphicsWindowIOS::realizeImplementation()
|
||||
getEventQueue()->getCurrentEventState()->setMouseYOrientation(osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS);
|
||||
|
||||
// make sure the event queue has the correct window rectangle size and input range
|
||||
getEventQueue()->syncWindowRectangleWithGraphcisContext();
|
||||
getEventQueue()->syncWindowRectangleWithGraphicsContext();
|
||||
|
||||
_valid = _initialized = _realized = true;
|
||||
return _valid;
|
||||
|
@ -1188,7 +1188,7 @@ void GraphicsWindowWin32::init()
|
||||
_valid = _initialized;
|
||||
|
||||
// make sure the event queue has the correct window rectangle size and input range
|
||||
getEventQueue()->syncWindowRectangleWithGraphcisContext();
|
||||
getEventQueue()->syncWindowRectangleWithGraphicsContext();
|
||||
|
||||
// 2008/10/03
|
||||
// Few days ago NVidia released WHQL certified drivers ver 178.13.
|
||||
@ -1992,7 +1992,7 @@ bool GraphicsWindowWin32::realizeImplementation()
|
||||
_realized = true;
|
||||
|
||||
// make sure the event queue has the correct window rectangle size and input range
|
||||
getEventQueue()->syncWindowRectangleWithGraphcisContext();
|
||||
getEventQueue()->syncWindowRectangleWithGraphicsContext();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -841,7 +841,7 @@ void GraphicsWindowX11::init()
|
||||
}
|
||||
}
|
||||
|
||||
getEventQueue()->syncWindowRectangleWithGraphcisContext();
|
||||
getEventQueue()->syncWindowRectangleWithGraphicsContext();
|
||||
}
|
||||
|
||||
bool GraphicsWindowX11::createWindow()
|
||||
@ -1055,7 +1055,7 @@ bool GraphicsWindowX11::realizeImplementation()
|
||||
|
||||
XMapWindow( _display, _window );
|
||||
|
||||
getEventQueue()->syncWindowRectangleWithGraphcisContext();
|
||||
getEventQueue()->syncWindowRectangleWithGraphicsContext();
|
||||
|
||||
// Window temp = _window;
|
||||
// XSetWMColormapWindows( _display, _window, &temp, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user