From 9e8a88e66cb9e7739542d61e09c803cecc7e6248 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 25 Nov 2005 20:40:16 +0000 Subject: Fix mousewheel handler bug (using wrong variable in initial check) Add sudoku game app (fun for the holidays! :) Use "-Os -g" as the default optimization settings. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_mac.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx index ddf23e1e0..a8f13cb34 100644 --- a/src/Fl_mac.cxx +++ b/src/Fl_mac.cxx @@ -799,7 +799,7 @@ static pascal OSStatus carbonMousewheelHandler( EventHandlerCallRef nextHandler, // to me why Apple changed the API on this even though the current API // supports two wheels just fine. Matthias, EventRef event; - if (GetEventKind(event)==11) { + if (GetEventKind(ev)==11) { // if this is a "MightyMouse" event, we need to convert it into a regular // MouseWheel event GetEventParameter( ev, kEventParamEventRef, typeEventRef, NULL, sizeof( EventRef ), NULL, &event ); -- cgit v1.2.3