Fixed mouse wheel related crash in GLUT emulation (STR #2381)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@7846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2010-11-15 19:43:34 +00:00
parent 234e3598c9
commit 39253b9a20
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
CHANGES IN FLTK 1.1.11
- Documentation fixes (STR #2410)
- Fixed mouse wheel related crash in GLUT emulation (STR #2381)
CHANGES IN FLTK 1.1.10
- Documentation fixes (STR #2220, STR #2209, STR #1945, STR #1893)

View File

@ -103,8 +103,8 @@ int Fl_Glut_Window::handle(int event) {
case FL_MOUSEWHEEL:
button = Fl::event_dy();
while (button < 0) {mouse(3,GLUT_DOWN,ex,ey); ++button;}
while (button > 0) {mouse(4,GLUT_DOWN,ex,ey); --button;}
while (button < 0) {if (mouse) mouse(3,GLUT_DOWN,ex,ey); ++button;}
while (button > 0) {if (mouse) mouse(4,GLUT_DOWN,ex,ey); --button;}
return 1;
case FL_RELEASE: