vlc | branch: master | David Fuhrmann <[email protected]> | Mon Jun 25 18:25:04 2012 +0200| [d31d2c2108e1c28dba9cac20e4602ccb936a442d] | committer: David Fuhrmann
macosx: don't use a private api for standard magnification threshold > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d31d2c2108e1c28dba9cac20e4602ccb936a442d --- modules/gui/macosx/VideoView.m | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/gui/macosx/VideoView.m b/modules/gui/macosx/VideoView.m index 428d187..c20feb1 100644 --- a/modules/gui/macosx/VideoView.m +++ b/modules/gui/macosx/VideoView.m @@ -40,12 +40,6 @@ #import <vlc_common.h> #import <vlc_keys.h> -#import <AppKit/NSEvent.h> - -@interface NSEvent (Undocumented) -+ (CGFloat)standardMagnificationThreshold; -@end - /***************************************************************************** * DeviceCallback: Callback triggered when the video-device variable is changed *****************************************************************************/ @@ -263,7 +257,10 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, - (void)magnifyWithEvent:(NSEvent *)event { f_cumulated_magnification += [event magnification]; - CGFloat f_threshold = [NSEvent standardMagnificationThreshold]; + + // This is the result of [NSEvent standardMagnificationThreshold]. + // Unfortunately, this is a private API, currently. + CGFloat f_threshold = 0.3; BOOL b_fullscreen = [[VLCMainWindow sharedInstance] isFullscreen]; if( ( f_cumulated_magnification > f_threshold && !b_fullscreen ) || ( f_cumulated_magnification < -f_threshold && b_fullscreen ) ) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
