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
0532b63e
Commit
0532b63e
authored
May 09, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup alpha
parent
ed42c4a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
modules/gui/fbosd.c
modules/gui/fbosd.c
+1
-11
No files found.
modules/gui/fbosd.c
View file @
0532b63e
...
...
@@ -189,12 +189,9 @@ vlc_module_begin();
add_string
(
"fbosd-text"
,
NULL
,
NULL
,
FBOSD_TEXT
,
FBOSD_LONGTEXT
,
true
);
#if defined(FBOSD_BLENDING)
add_integer_with_range
(
"fbosd-alpha"
,
255
,
0
,
255
,
NULL
,
ALPHA_TEXT
,
ALPHA_LONGTEXT
,
true
);
#endif
set_section
(
N_
(
"Position"
),
NULL
);
add_integer
(
"fbosd-x"
,
0
,
NULL
,
POSX_TEXT
,
POSX_LONGTEXT
,
false
);
...
...
@@ -332,12 +329,9 @@ static int Create( vlc_object_t *p_this )
return
VLC_ENOMEM
;
}
#if defined(FBOSD_BLENDING)
p_sys
->
i_alpha
=
var_CreateGetIntegerCommand
(
p_intf
,
"fbosd-alpha"
);
var_AddCallback
(
p_intf
,
"fbosd-alpha"
,
OverlayCallback
,
NULL
);
#else
p_sys
->
i_alpha
=
255
;
#endif
p_sys
->
i_aspect
=
-
1
;
psz_aspect
=
var_CreateGetNonEmptyString
(
p_intf
,
"fbosd-aspect-ratio"
);
...
...
@@ -480,10 +474,8 @@ static void Destroy( vlc_object_t *p_this )
p_sys
->
b_render
=
false
;
p_sys
->
b_clear
=
false
;
#if defined(FBOSD_BLENDING)
var_DelCallback
(
p_intf
,
"fbosd-alpha"
,
OverlayCallback
,
NULL
);
var_Destroy
(
p_intf
,
"fbosd-alpha"
);
#endif
var_DelCallback
(
p_intf
,
"fbosd-x"
,
OverlayCallback
,
NULL
);
var_DelCallback
(
p_intf
,
"fbosd-y"
,
OverlayCallback
,
NULL
);
...
...
@@ -1438,12 +1430,10 @@ static int OverlayCallback( vlc_object_t *p_this, char const *psz_cmd,
{
p_sys
->
render
[
i
].
text_style
.
i_font_alpha
=
255
-
newval
.
i_int
;
}
#if defined(FBOSD_BLENDING)
else
if
(
!
strncmp
(
psz_cmd
,
"fbosd-alpha"
,
11
)
)
{
p_sys
->
render
[
i
].
i_alpha
=
newval
.
i_int
;
}
#endif
}
return
VLC_SUCCESS
;
}
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