Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
d31d2c21
Commit
d31d2c21
authored
Jun 25, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: don't use a private api for standard magnification threshold
parent
ea90ac95
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
modules/gui/macosx/VideoView.m
modules/gui/macosx/VideoView.m
+4
-7
No files found.
modules/gui/macosx/VideoView.m
View file @
d31d2c21
...
...
@@ -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
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment