From 38a0ebd38f1649f8aae343f9ef19e740755d74e4 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 3 Apr 2015 05:31:01 +0000 Subject: Restore compilability with old SDKs after commit of support for zoom gesture. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 86477c1f4..ebdfe779c 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -956,6 +956,7 @@ static void cocoaMouseWheelHandler(NSEvent *theEvent) */ static void cocoaMagnifyHandler(NSEvent *theEvent) { +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 fl_lock_function(); Fl_Window *window = (Fl_Window*)[(FLWindow*)[theEvent window] getFl_Window]; if ( !window->shown() ) { @@ -963,7 +964,7 @@ static void cocoaMagnifyHandler(NSEvent *theEvent) return; } Fl::first_window(window); - Fl::e_dy = [theEvent magnification]*1000; + Fl::e_dy = [theEvent magnification]*1000; // 10.5.2 if ( Fl::e_dy) { NSPoint pos = [theEvent locationInWindow]; pos.y = window->h() - pos.y; @@ -973,6 +974,7 @@ static void cocoaMagnifyHandler(NSEvent *theEvent) Fl::handle( FL_ZOOM_GESTURE, window ); } fl_unlock_function(); +#endif } /* -- cgit v1.2.3