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:
parent
accf34f276
commit
d2f4577fc3
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user