Author: manolo
Date: 2010-11-08 00:10:48 -0800 (Mon, 08 Nov 2010)
New Revision: 7809
Log:
Fixed crash under Mac OS X 10.3
Modified:
branches/branch-1.3/src/Fl_cocoa.mm
Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2010-11-07 20:13:50 UTC (rev 7808)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2010-11-08 08:10:48 UTC (rev 7809)
@@ -803,7 +803,6 @@
NSPoint pos = [theEvent locationInWindow];
pos.y = window->h() - pos.y;
NSInteger btn = [theEvent buttonNumber] + 1;
- int clickCount = [theEvent clickCount];
NSUInteger mods = [theEvent modifierFlags];
int sendEvent = 0;
@@ -827,7 +826,7 @@
sendEvent = FL_PUSH;
Fl::e_is_click = 1;
px = (int)pos.x; py = (int)pos.y;
- if (clickCount>1)
+ if ([theEvent clickCount] > 1)
Fl::e_clicks++;
else
Fl::e_clicks = 0;
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit