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
52896a65
Commit
52896a65
authored
Aug 18, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix on the fly Opaqueness changing
parent
92115f28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
modules/gui/macosx/extended.m
modules/gui/macosx/extended.m
+17
-14
No files found.
modules/gui/macosx/extended.m
View file @
52896a65
...
...
@@ -318,20 +318,21 @@ static VLCExtended *_o_sharedInstance = nil;
}
}
/* change the opaqueness of the vouts */
-
(
IBAction
)
adjImg_opaque
:(
id
)
sender
{
/* change the opaqueness of the vouts */
vlc_value_t
val
;
id
o_window
=
[
NSApp
keyWindow
];
NSArray
*
o_windows
=
[
NSApp
orderedWindows
];
NSEnumerator
*
o_enumerator
=
[
o_windows
objectEnumerator
];
playlist_t
*
p_playlist
=
vlc_object_find
(
VLCIntf
,
VLC_OBJECT_PLAYLIST
,
\
FIND_ANYWHERE
);
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_playlist
,
\
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
vout_thread_t
*
p_real_vout
;
vout_thread_t
*
p_vout
=
vlc_object_find
(
VLCIntf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
vout_thread_t
*
p_real_vout
;
vlc_value_t
val
;
val
.
f_float
=
[
o_sld_opaque
floatValue
]
/
100
;
/* Try to set on the fly */
if
(
p_vout
)
if
(
p_vout
!=
NULL
)
{
if
(
p_vout
->
i_object_type
==
VLC_OBJECT_OPENGL
)
{
...
...
@@ -341,13 +342,15 @@ static VLCExtended *_o_sharedInstance = nil;
{
p_real_vout
=
p_vout
;
}
/* FIXME: insert the correct pointer here */
/*[p_vout->p_sys->o_window setAlpha: var_CreateGetFloat( p_vout, \
"macosx-opaqueness")];*/
var_Set
(
p_vout
,
"macosx-opaqueness"
,
val
);
vlc_object_release
(
p_real_vout
);
var_Set
(
p_real_vout
,
"macosx-opaqueness"
,
val
);
while
((
o_window
=
[
o_enumerator
nextObject
]))
{
if
(
[[
o_window
className
]
isEqualToString
:
@"VLCWindow"
]
)
{
[
o_window
setAlphaValue
:
val
.
f_float
];
}
}
vlc_object_release
(
p_vout
);
}
...
...
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