Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
2c674d76
Commit
2c674d76
authored
Oct 01, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: add yosemite guard
parent
d37f0aa4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
modules/gui/macosx/CompatibilityFixes.h
modules/gui/macosx/CompatibilityFixes.h
+3
-1
modules/gui/macosx/Windows.m
modules/gui/macosx/Windows.m
+1
-1
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+1
-1
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+1
-1
No files found.
modules/gui/macosx/CompatibilityFixes.h
View file @
2c674d76
...
...
@@ -28,7 +28,9 @@
#define OSX_SNOW_LEOPARD (NSAppKitVersionNumber < 1115 && NSAppKitVersionNumber >= 1038)
#define OSX_LION (NSAppKitVersionNumber < 1162 && NSAppKitVersionNumber >= 1115.2)
#define OSX_MOUNTAIN_LION (NSAppKitVersionNumber < 1244 && NSAppKitVersionNumber >= 1162)
#define OSX_MAVERICKS NSAppKitVersionNumber >= 1244
#define OSX_MAVERICKS (NSAppKitVersionNumber < 1334 && NSAppKitVersionNumber >= 1244)
#define OSX_YOSEMITE NSAppKitVersionNumber >= 1334
#pragma mark -
#pragma Fixes for OS X Snow Leopard (10.6)
...
...
modules/gui/macosx/Windows.m
View file @
2c674d76
...
...
@@ -256,7 +256,7 @@
BOOL
b_inFullscreen
=
[
self
fullscreen
]
||
([
self
respondsToSelector
:
@selector
(
inFullscreenTransition
)]
&&
[(
VLCVideoWindowCommon
*
)
self
inFullscreenTransition
]);
if
(
OSX_MAVERICKS
&&
b_inFullscreen
&&
constrainedRect
.
size
.
width
==
screenRect
.
size
.
width
if
(
(
OSX_MAVERICKS
||
OSX_YOSEMITE
)
&&
b_inFullscreen
&&
constrainedRect
.
size
.
width
==
screenRect
.
size
.
width
&&
constrainedRect
.
size
.
height
!=
screenRect
.
size
.
height
&&
abs
(
screenRect
.
size
.
height
-
constrainedRect
.
size
.
height
)
<=
25
.)
{
...
...
modules/gui/macosx/intf.m
View file @
2c674d76
...
...
@@ -1492,7 +1492,7 @@ static bool f_appExit = false;
IOReturn
success
;
/* work-around a bug in 10.7.4 and 10.7.5, so check for 10.7.x < 10.7.4, 10.8 and 10.6 */
if
((
NSAppKitVersionNumber
>=
1115
.
2
&&
NSAppKitVersionNumber
<
1138
.
45
)
||
OSX_MOUNTAIN_LION
||
OSX_MAVERICKS
||
OSX_SNOW_LEOPARD
)
{
if
((
NSAppKitVersionNumber
>=
1115
.
2
&&
NSAppKitVersionNumber
<
1138
.
45
)
||
OSX_MOUNTAIN_LION
||
OSX_MAVERICKS
||
OSX_
YOSEMITE
||
OSX_
SNOW_LEOPARD
)
{
CFStringRef
reasonForActivity
=
CFStringCreateWithCString
(
kCFAllocatorDefault
,
_
(
"VLC media playback"
),
kCFStringEncodingUTF8
);
if
([
self
activeVideoPlayback
])
success
=
IOPMAssertionCreateWithName
(
kIOPMAssertionTypeNoDisplaySleep
,
kIOPMAssertionLevelOn
,
reasonForActivity
,
&
systemSleepAssertionID
);
...
...
modules/gui/macosx/misc.m
View file @
2c674d76
...
...
@@ -173,7 +173,7 @@ static bool b_old_spaces_style = YES;
/* init our fake object attribute */
blackoutWindows
=
[[
NSMutableArray
alloc
]
initWithCapacity
:
1
];
if
(
OSX_MAVERICKS
)
{
if
(
OSX_MAVERICKS
||
OSX_YOSEMITE
)
{
NSUserDefaults
*
userDefaults
=
[[
NSUserDefaults
alloc
]
init
];
[
userDefaults
addSuiteNamed
:
@"com.apple.spaces"
];
/* this is system settings -> mission control -> monitors using different spaces */
...
...
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