Fix typos and spelling.
This commit is contained in:
committed by
Robert Osfield
parent
c3008512f1
commit
02c310982e
@@ -618,7 +618,7 @@ bool GraphicsWindowCarbon::handleMouseEvent(EventRef theEvent)
|
||||
sizeof(TabletPointRec), NULL, (void *)&theTabletPointRecord))
|
||||
{
|
||||
int penRotation = (int)theTabletPointRecord.rotation * 9 / 575; //to get angle between 0 to 360 grad
|
||||
penRotation = -(((penRotation + 180) % 360) - 180) ; //for same range on all plattforms we need -180 to 180
|
||||
penRotation = -(((penRotation + 180) % 360) - 180) ; //for same range on all platforms we need -180 to 180
|
||||
getEventQueue()->penOrientation (
|
||||
theTabletPointRecord.tiltX * 60 / 32767.0f, //multiply with 60 to get angle between -60 to 60 grad
|
||||
-theTabletPointRecord.tiltY * 60 / 32767.0f, //multiply with 60 to get angle between -60 to 60 grad
|
||||
|
||||
@@ -167,7 +167,7 @@ std::ostream& operator<<(std::ostream& os, const NSRect& rect)
|
||||
// Cocoa uses a coordinate system where its origin is in the bottom left corner,
|
||||
// osg and quartz uses top left for the origin
|
||||
//
|
||||
// these 2 methods convets rects between the different coordinate systems
|
||||
// these 2 methods converts rects between the different coordinate systems
|
||||
// ----------------------------------------------------------------------------------------------------------
|
||||
|
||||
static NSRect convertFromQuartzCoordinates(const NSRect& rect)
|
||||
|
||||
@@ -875,7 +875,7 @@ bool GraphicsWindowIOS::realizeImplementation()
|
||||
wsi->getScreenSettings((*_traits), screenSettings);
|
||||
screen = wsi->getUIScreen((*_traits));
|
||||
}else{
|
||||
OSG_FATAL << "GraphicsWindowIOS::realizeImplementation: ERROR: Failed to create IOS windowing system, OSG will be unable to create a vaild gl context and will not be able to render." << std::endl;
|
||||
OSG_FATAL << "GraphicsWindowIOS::realizeImplementation: ERROR: Failed to create IOS windowing system, OSG will be unable to create a valid gl context and will not be able to render." << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -2012,7 +2012,7 @@ bool GraphicsWindowWin32::setWindowDecorationImplementation( bool decorated )
|
||||
error = ::GetLastError();
|
||||
if (result==0 && error)
|
||||
{
|
||||
reportErrorForScreen("GraphicsWindowWin32::setWindowDecoration() - Unable to set window extented style", _traits->screenNum, error);
|
||||
reportErrorForScreen("GraphicsWindowWin32::setWindowDecoration() - Unable to set window extended style", _traits->screenNum, error);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2825,7 +2825,7 @@ LRESULT GraphicsWindowWin32::handleNativeWindowingEvent( HWND hwnd, UINT uMsg, W
|
||||
{
|
||||
// Wojciech Lewandowski: 2011/09/12
|
||||
// Skip CONTROL | MENU | SHIFT tests because we are polling exact left or right keys
|
||||
// above return press for both right and left so we may end up with incosistent
|
||||
// above return press for both right and left so we may end up with inconsistent
|
||||
// modifier mask if we report left control & right control while only right was pressed
|
||||
LONG rightSideCode = 0;
|
||||
switch( i )
|
||||
|
||||
@@ -80,7 +80,7 @@ void IOSWindowingSystemInterface::getScreenSettings(const osg::GraphicsContext::
|
||||
resolution.width = [screen bounds].size.width * scale;
|
||||
resolution.height = [screen bounds].size.height * scale;
|
||||
resolution.colorDepth = 24;
|
||||
resolution.refreshRate = 60; //i've read 60 is max, not sure if thats true
|
||||
resolution.refreshRate = 60; //i've read 60 is max, not sure if that's true
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -96,7 +96,7 @@ void IOSWindowingSystemInterface::getScreenSettings(const osg::GraphicsContext::
|
||||
resolution.width = size.width;
|
||||
resolution.height = size.height;
|
||||
resolution.colorDepth = 24;
|
||||
resolution.refreshRate = 60; //i've read 60 is max, not sure if thats true
|
||||
resolution.refreshRate = 60; //i've read 60 is max, not sure if that's true
|
||||
|
||||
OSG_INFO << "new resolution for screen " << si.screenNum << ": " << size.width << "x" << size.height << std::endl;
|
||||
}
|
||||
@@ -130,7 +130,7 @@ void IOSWindowingSystemInterface::enumerateScreenSettings(const osg::GraphicsCon
|
||||
resolution.width = [screen bounds].size.width * scale;
|
||||
resolution.height = [screen bounds].size.height * scale;
|
||||
resolution.colorDepth = 24;
|
||||
resolution.refreshRate = 60; //i've read 60 is max, not sure if thats true
|
||||
resolution.refreshRate = 60; //i've read 60 is max, not sure if that's true
|
||||
resolutionList.push_back(resolution);
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ void IOSWindowingSystemInterface::enumerateScreenSettings(const osg::GraphicsCon
|
||||
resolution.width = size.width;
|
||||
resolution.height = size.height;
|
||||
resolution.colorDepth = 24;
|
||||
resolution.refreshRate = 60; //i've read 60 is max, not sure if thats true
|
||||
resolution.refreshRate = 60; //i've read 60 is max, not sure if that's true
|
||||
resolutionList.push_back(resolution);
|
||||
|
||||
OSG_INFO << "new resolution: " << size.width << "x" << size.height << std::endl;
|
||||
|
||||
@@ -633,7 +633,7 @@ void PixelBufferWin32::init()
|
||||
|
||||
if (_traits->width != iWidth || _traits->height != iHeight)
|
||||
{
|
||||
OSG_NOTICE << "PixelBufferWin32::init(), pbuffer created with different size then requsted" << std::endl;
|
||||
OSG_NOTICE << "PixelBufferWin32::init(), pbuffer created with different size then requested" << std::endl;
|
||||
OSG_NOTICE << "\tRequested size (" << _traits->width << "," << _traits->height << ")" << std::endl;
|
||||
OSG_NOTICE << "\tPbuffer size (" << iWidth << "," << iHeight << ")" << std::endl;
|
||||
_traits->width = iWidth;
|
||||
|
||||
@@ -289,7 +289,7 @@ void PixelBufferX11::init()
|
||||
|
||||
if (_traits->width != iWidth || _traits->height != iHeight)
|
||||
{
|
||||
OSG_NOTICE << "PixelBufferX11::init(), pbuffer created with different size then requsted" << std::endl;
|
||||
OSG_NOTICE << "PixelBufferX11::init(), pbuffer created with different size then requested" << std::endl;
|
||||
OSG_NOTICE << "\tRequested size (" << _traits->width << "," << _traits->height << ")" << std::endl;
|
||||
OSG_NOTICE << "\tPbuffer size (" << iWidth << "," << iHeight << ")" << std::endl;
|
||||
_traits->width = iWidth;
|
||||
@@ -323,7 +323,7 @@ void PixelBufferX11::init()
|
||||
|
||||
if (_traits->width != iWidth || _traits->height != iHeight)
|
||||
{
|
||||
OSG_NOTICE << "PixelBufferX11::init(), SGIX_pbuffer created with different size then requsted" << std::endl;
|
||||
OSG_NOTICE << "PixelBufferX11::init(), SGIX_pbuffer created with different size then requested" << std::endl;
|
||||
OSG_NOTICE << "\tRequested size (" << _traits->width << "," << _traits->height << ")" << std::endl;
|
||||
OSG_NOTICE << "\tPbuffer size (" << iWidth << "," << iHeight << ")" << std::endl;
|
||||
_traits->width = iWidth;
|
||||
|
||||
@@ -488,7 +488,7 @@ bool RecordCameraPathHandler::handle(const osgGA::GUIEventAdapter &ea, osgGA::GU
|
||||
OSG_NOTICE << "Recording camera path to file " << ss.str() << std::endl;
|
||||
_fout.open( ss.str().c_str() );
|
||||
|
||||
// make sure doubles are not trucated by default stream precision = 6
|
||||
// make sure doubles are not truncated by default stream precision = 6
|
||||
_fout.precision( 15 );
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user