Minor corrections to the UNIX_X11 mouse-wheel support. In part this
authorRichard Rauch <rkr@olib.org>
Fri, 7 Nov 2003 05:43:34 +0000 (05:43 +0000)
committerRichard Rauch <rkr@olib.org>
Fri, 7 Nov 2003 05:43:34 +0000 (05:43 +0000)
commite64668928cb1ae343c726195fb01d0eaf951ae84
treeb89fc6d01a8940278611980a6b8b64a31b78d8c7
parent9e880aa45091c604cffa4e564e395e2385c01e25
Minor corrections to the UNIX_X11 mouse-wheel support.  In part this
reflects that {button} is already shifted to the GLUT numbering, and
hence should be counted as 3&4, 5&6, etc.

The other change was simply to clarify the computation of {direction}.
The original code did some clever arithmetic.  The new code is more
straightforward, even if it requires more lines to express.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@306 7f0cb862-5218-0410-a997-914c9d46530a
src/freeglut_main.c