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
5e732fcf
Commit
5e732fcf
authored
Feb 23, 2012
by
David Fuhrmann
Committed by
Felix Paul Kühne
Feb 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: proper use of presenation options, removal of an redundant if
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
53dfe2b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.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
+5
-8
No files found.
modules/gui/macosx/MainWindow.m
View file @
5e732fcf
...
@@ -1335,7 +1335,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -1335,7 +1335,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
-
(
void
)
resizeWindow
-
(
void
)
resizeWindow
{
{
if
(
b_fullscreen
||
(
OSX_LION
&&
[
NSApp
presentationOptions
]
==
NSApplicationPresentationFullScreen
&&
b_nativeFullscreenMode
)
)
if
(
b_fullscreen
||
(
OSX_LION
&&
[
NSApp
presentationOptions
]
&
NSApplicationPresentationFullScreen
&&
b_nativeFullscreenMode
)
)
return
;
return
;
NSPoint
topleftbase
=
NSMakePoint
(
0
,
[
self
frame
].
size
.
height
);
NSPoint
topleftbase
=
NSMakePoint
(
0
,
[
self
frame
].
size
.
height
);
...
...
modules/gui/macosx/intf.m
View file @
5e732fcf
...
@@ -583,7 +583,7 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -583,7 +583,7 @@ static VLCMain *_o_sharedMainInstance = nil;
if
(
OSX_LION
)
if
(
OSX_LION
)
{
{
if
([
NSApp
currentSystemPresentationOptions
]
==
NSApplicationPresentationFullScreen
)
if
([
NSApp
currentSystemPresentationOptions
]
&
NSApplicationPresentationFullScreen
)
var_SetBool
(
p_playlist
,
"fullscreen"
,
YES
);
var_SetBool
(
p_playlist
,
"fullscreen"
,
YES
);
}
}
...
...
modules/gui/macosx/misc.m
View file @
5e732fcf
...
@@ -144,15 +144,12 @@ static NSMutableArray *blackoutWindows = NULL;
...
@@ -144,15 +144,12 @@ static NSMutableArray *blackoutWindows = NULL;
[
blackoutWindows
addObject
:
blackoutWindow
];
[
blackoutWindows
addObject
:
blackoutWindow
];
[
blackoutWindow
release
];
[
blackoutWindow
release
];
if
(
[
screen
isMainScreen
]
)
if
(
[
screen
isMainScreen
]
)
{
{
if
([
screen
isMainScreen
])
if
(
OSX_LEOPARD
)
{
SetSystemUIMode
(
kUIModeAllHidden
,
kUIOptionAutoShowMenuBar
);
if
(
OSX_LEOPARD
)
else
SetSystemUIMode
(
kUIModeAllHidden
,
kUIOptionAutoShowMenuBar
);
[
NSApp
setPresentationOptions
:(
NSApplicationPresentationAutoHideDock
|
NSApplicationPresentationAutoHideMenuBar
)];
else
[
NSApp
setPresentationOptions
:(
NSApplicationPresentationAutoHideDock
|
NSApplicationPresentationAutoHideMenuBar
)];
}
}
}
}
}
}
}
...
...
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