Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
4630078e
Commit
4630078e
authored
Jul 16, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Properly inherit variables if they don't exist.
parent
58893073
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+4
-4
No files found.
modules/gui/macosx/vout.m
View file @
4630078e
...
...
@@ -1058,7 +1058,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
[
self
makeFirstResponder
:
o_view
];
[
self
setCanBecomeKeyWindow
:
YES
];
if
(
var_GetBool
(
p_vout
,
"macosx-background"
)
)
if
(
var_
Create
GetBool
(
p_vout
,
"macosx-background"
)
)
{
int
i_device
=
var_GetInteger
(
p_vout
->
p_libvlc
,
"video-device"
);
...
...
@@ -1075,12 +1075,12 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
[
self
setLevel
:
CGWindowLevelForKey
(
kCGDesktopWindowLevelKey
)];
[
self
setMovableByWindowBackground
:
NO
];
}
if
(
var_GetBool
(
p_vout
,
"video-on-top"
)
)
if
(
var_
Create
GetBool
(
p_vout
,
"video-on-top"
)
)
{
[
self
setLevel
:
NSStatusWindowLevel
];
}
[
self
setAlphaValue
:
var_GetFloat
(
p_vout
,
"macosx-opaqueness"
)];
[
self
setAlphaValue
:
var_
Create
GetFloat
(
p_vout
,
"macosx-opaqueness"
)];
/* Add the view. It's automatically resized to fit the window */
[
self
setContentView
:
o_view
];
...
...
@@ -1099,7 +1099,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
BOOL
b_black
=
NO
;
i_device
=
var_GetInteger
(
p_vout
->
p_libvlc
,
"video-device"
);
b_black
=
var_GetBool
(
p_vout
,
"macosx-black"
);
b_black
=
var_
Create
GetBool
(
p_vout
,
"macosx-black"
);
/* Find out on which screen to open the window */
screen
=
[
NSScreen
screenWithDisplayID
:
(
CGDirectDisplayID
)
i_device
];
...
...
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