From f551c3dcec011b1f610181a9888cb8ab56619a78 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 21 Mar 2012 14:08:07 +0000 Subject: [PATCH] From David Callu, "just a typo fix that break the compilation under windows" --- src/osgViewer/GraphicsWindowWin32.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/osgViewer/GraphicsWindowWin32.cpp b/src/osgViewer/GraphicsWindowWin32.cpp index dd71c2576..30cc3ad8e 100644 --- a/src/osgViewer/GraphicsWindowWin32.cpp +++ b/src/osgViewer/GraphicsWindowWin32.cpp @@ -1767,7 +1767,7 @@ HGLRC GraphicsWindowWin32::createContextImplementation() int attribs[ 16 ]; unsigned int major = 1, minor = 0; - if( !_traitrs->getContextVersion(major, minor) || major<3 ) + if( !_traits->getContextVersion(major, minor) || major<3 ) { OSG_NOTIFY( osg::WARN ) << "GL3: Non-GL3 version number: " << _traits->glContextVersion << std::endl; } @@ -2660,8 +2660,8 @@ LRESULT GraphicsWindowWin32::handleNativeWindowingEvent( HWND hwnd, UINT uMsg, W // ok. See winuser.h for the key codes. for (unsigned int i = 0x08; i < 0xFF; i++) { - // Wojciech Lewandowski: 2011/09/12 - // Skip CONTROL | MENU | SHIFT tests because we are polling exact left or right keys + // 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 // modifier mask if we report left control & right control while only right was pressed LONG rightSideCode = 0; @@ -2677,8 +2677,8 @@ LRESULT GraphicsWindowWin32::handleNativeWindowingEvent( HWND hwnd, UINT uMsg, W case VK_RMENU: rightSideCode = 0x01000000; } - if ((::GetAsyncKeyState(i) & 0x8000) != 0) - { + if ((::GetAsyncKeyState(i) & 0x8000) != 0) + { // Compute lParam because subsequent adaptKey will rely on correct lParam UINT scanCode = ::MapVirtualKeyEx( i, 0, ::GetKeyboardLayout(0)); // Set Extended Key bit + Scan Code + 30 bit to indicate key was set before sending message