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
083f1390
Commit
083f1390
authored
Sep 03, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: use video-wallpaper instead of macosx-background, and fix some small issue
parent
8d969f7f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+3
-3
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+1
-1
modules/gui/macosx/macosx.m
modules/gui/macosx/macosx.m
+0
-4
No files found.
modules/gui/macosx/MainWindow.m
View file @
083f1390
...
...
@@ -1804,8 +1804,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
-
(
void
)
setupVideoView
{
// TODO: make lion fullscreen compatible with
macosx-background
and !embedded-video
if
(
var_InheritBool
(
VLCIntf
,
"
macosx-background
"
)
&&
!
b_nativeFullscreenMode
)
{
// TODO: make lion fullscreen compatible with
video-wallpaper
and !embedded-video
if
(
var_InheritBool
(
VLCIntf
,
"
video-wallpaper
"
)
&&
!
b_nativeFullscreenMode
)
{
msg_Dbg
(
VLCIntf
,
"Creating background window"
);
NSScreen
*
screen
=
[
NSScreen
screenWithDisplayID
:(
CGDirectDisplayID
)
var_InheritInteger
(
VLCIntf
,
"macosx-vdev"
)];
if
(
!
screen
)
...
...
@@ -1971,7 +1971,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
{
nativeVideoSize
=
size
;
if
(
var_InheritBool
(
VLCIntf
,
"macosx-video-autoresize"
)
&&
!
b_fullscreen
&&
!
var_InheritBool
(
VLCIntf
,
"
macosx-background
"
))
if
(
var_InheritBool
(
VLCIntf
,
"macosx-video-autoresize"
)
&&
!
b_fullscreen
&&
!
var_InheritBool
(
VLCIntf
,
"
video-wallpaper
"
))
[
self
performSelectorOnMainThread
:
@selector
(
resizeWindow
)
withObject
:
nil
waitUntilDone
:
NO
];
}
...
...
modules/gui/macosx/intf.m
View file @
083f1390
...
...
@@ -1371,7 +1371,7 @@ static VLCMain *_o_sharedMainInstance = nil;
-
(
void
)
setWindowLevel
:(
NSNumber
*
)
state
{
if
(
var_InheritBool
(
p_intf
,
"macosx-background"
))
if
(
var_InheritBool
(
p_intf
,
"macosx-background"
)
||
[[[[
VLCMainWindow
sharedInstance
]
videoView
]
window
]
level
]
<
NSNormalWindowLevel
)
return
;
if
([
state
unsignedIntValue
]
&
VOUT_WINDOW_STATE_ABOVE
)
...
...
modules/gui/macosx/macosx.m
View file @
083f1390
...
...
@@ -116,9 +116,6 @@ void WindowClose (vout_window_t *);
#define PLAYMODEBUTTONS_TEXT N_("Show play mode control buttons")
#define PLAYMODEBUTTONS_LONGTEXT N_("Shows the shuffle and repeat buttons in the main window")
#define BACKGROUND_TEXT N_("Use as desktop background")
#define BACKGROUND_LONGTEXT N_("Use the video as the desktop background.")
vlc_module_begin ()
set_description(N_("Mac OS X interface"))
set_capability("interface", 200)
...
...
@@ -144,7 +141,6 @@ vlc_module_begin ()
add_bool("macosx-icon-change", true, ICONCHANGE_TEXT, ICONCHANGE_LONGTEXT, true)
add_bool("macosx-show-playback-buttons", false, JUMPBUTTONS_TEXT, JUMPBUTTONS_LONGTEXT, false)
add_bool("macosx-show-playmode-buttons", true, PLAYMODEBUTTONS_TEXT, PLAYMODEBUTTONS_LONGTEXT, false)
add_bool("macosx-background", false, BACKGROUND_TEXT, BACKGROUND_LONGTEXT, false)
add_submodule ()
set_description("Mac OS X Video Output Provider")
...
...
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