From: <fa...@us...> - 2012-06-10 20:41:51
|
Revision: 1341 http://freeglut.svn.sourceforge.net/freeglut/?rev=1341&view=rev Author: fayjf Date: 2012-06-10 20:41:45 +0000 (Sun, 10 Jun 2012) Log Message: ----------- Fixing mouse wheel bug in Windows per e-mail from Ioannis Petikas dated 5/9/12 at 1:02 PM. Modified Paths: -------------- trunk/freeglut/freeglut/src/mswin/fg_main_mswin.c Modified: trunk/freeglut/freeglut/src/mswin/fg_main_mswin.c =================================================================== --- trunk/freeglut/freeglut/src/mswin/fg_main_mswin.c 2012-06-10 19:35:13 UTC (rev 1340) +++ trunk/freeglut/freeglut/src/mswin/fg_main_mswin.c 2012-06-10 20:41:45 UTC (rev 1341) @@ -689,7 +689,7 @@ /* * XXX Should use WHEEL_DELTA instead of 120 */ - if ( abs ( fgState.MouseWheelTicks ) > 120 ) + if ( abs ( fgState.MouseWheelTicks ) >= 120 ) { int direction = ( fgState.MouseWheelTicks > 0 ) ? 1 : -1; @@ -703,7 +703,7 @@ /* * XXX Should use WHEEL_DELTA instead of 120 */ - while( abs ( fgState.MouseWheelTicks ) > 120 ) + while( abs ( fgState.MouseWheelTicks ) >= 120 ) { if( FETCH_WCB( *window, MouseWheel ) ) INVOKE_WCB( *window, MouseWheel, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |