Author: engelsman
Date: 2010-11-11 10:22:43 -0800 (Thu, 11 Nov 2010)
New Revision: 7818
Log:
Added mouse!=0 check in Fl_Glut_Window::handle (STR #2381)



Modified:
   branches/branch-1.3/CHANGES
   branches/branch-1.3/src/glut_compatability.cxx

Modified: branches/branch-1.3/CHANGES
===================================================================
--- branches/branch-1.3/CHANGES 2010-11-11 11:15:18 UTC (rev 7817)
+++ branches/branch-1.3/CHANGES 2010-11-11 18:22:43 UTC (rev 7818)
@@ -1,5 +1,6 @@
 CHANGES IN FLTK 1.3.0
 
+       - Added mouse!=0 check in Fl_Glut_Window::handle (STR #2381)
        - Fixed menu and shortcut handling (STR #2243)
        - Removed support for gcc 2.x (or older)
        - Fixed fltk-config to give --libs on one line (STR #2408)

Modified: branches/branch-1.3/src/glut_compatability.cxx
===================================================================
--- branches/branch-1.3/src/glut_compatability.cxx      2010-11-11 11:15:18 UTC 
(rev 7817)
+++ branches/branch-1.3/src/glut_compatability.cxx      2010-11-11 18:22:43 UTC 
(rev 7818)
@@ -3,7 +3,7 @@
 //
 // GLUT emulation routines for the Fast Light Tool Kit (FLTK).
 //
-// Copyright 1998-2009 by Bill Spitzak and others.
+// Copyright 1998-2010 by Bill Spitzak and others.
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Library General Public
@@ -105,8 +105,8 @@
 
   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:

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to