mirror of
https://github.com/fltk/fltk.git
synced 2026-06-07 09:13:58 +08:00
Fixed crash under Mac OS X 10.3
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+1
-2
@@ -803,7 +803,6 @@ static void cocoaMouseHandler(NSEvent *theEvent)
|
||||
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 @@ static void cocoaMouseHandler(NSEvent *theEvent)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user