diff options
| author | nyamatongwe <nyamatongwe@gmail.com> | 2012-06-07 14:24:29 +1000 |
|---|---|---|
| committer | nyamatongwe <nyamatongwe@gmail.com> | 2012-06-07 14:24:29 +1000 |
| commit | d732def6ae09c7434ace89f14c9094016b215912 (patch) | |
| tree | 3ebdeb14efa1ca01a5ab46774a6cfb27b62c1529 /cocoa/ScintillaView.mm | |
| parent | ff4e99df2cb0d2fdfec09c7ddd538b862e156c6c (diff) | |
| download | scintilla-mirror-d732def6ae09c7434ace89f14c9094016b215912.tar.gz | |
Protect against APIs only available on 10.6+ when building for 10.5.
Diffstat (limited to 'cocoa/ScintillaView.mm')
| -rw-r--r-- | cocoa/ScintillaView.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index 67d79665e..3cdc612c7 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -642,6 +642,7 @@ NSString *SCIUpdateUINotification = @"SCIUpdateUI"; */ - (void) magnifyWithEvent: (NSEvent *) event { +#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 CGFloat z = [event magnification]; // Zoom out or in 1pt depending on sign of magnification event value (0.0 = no change) @@ -649,6 +650,7 @@ NSString *SCIUpdateUINotification = @"SCIUpdateUI"; [ScintillaView directCall: self message: SCI_ZOOMOUT wParam: 0 lParam: 0]; else if (z >= 0.0) [ScintillaView directCall: self message: SCI_ZOOMIN wParam: 0 lParam: 0]; +#endif } //-------------------------------------------------------------------------------------------------- |
