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 | ebec28c3ebc82691856912b48447098c0924ff7b (patch) | |
| tree | 4b28f4452e91039f6779e7ac598a2f65942d3f29 /cocoa/ScintillaView.mm | |
| parent | ab91cdcc385d0ffa53a6ee9f57cc79d7122b40ca (diff) | |
| download | scintilla-mirror-ebec28c3ebc82691856912b48447098c0924ff7b.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 } //-------------------------------------------------------------------------------------------------- |
