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
f5eb3ce2
Commit
f5eb3ce2
authored
Aug 23, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freetype: do not render transparent overlayed content
parent
bb9834b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+10
-4
No files found.
modules/text_renderer/freetype.c
View file @
f5eb3ce2
...
@@ -744,10 +744,13 @@ static inline void RenderBackground( subpicture_region_t *p_region,
...
@@ -744,10 +744,13 @@ static inline void RenderBackground( subpicture_region_t *p_region,
p_char
->
p_style
->
i_background_alpha
;
p_char
->
p_style
->
i_background_alpha
;
/* Render the actual background */
/* Render the actual background */
for
(
int
dy
=
line_top
;
dy
<
line_bottom
;
dy
++
)
if
(
i_alpha
!=
STYLE_ALPHA_TRANSPARENT
)
{
{
for
(
int
dx
=
line_start
;
dx
<
line_end
;
dx
++
)
for
(
int
dy
=
line_top
;
dy
<
line_bottom
;
dy
++
)
BlendPixel
(
p_picture
,
dx
,
dy
,
i_alpha
,
i_x
,
i_y
,
i_z
,
0xff
);
{
for
(
int
dx
=
line_start
;
dx
<
line_end
;
dx
++
)
BlendPixel
(
p_picture
,
dx
,
dy
,
i_alpha
,
i_x
,
i_y
,
i_z
,
0xff
);
}
}
}
line_start
=
line_end
;
line_start
=
line_end
;
...
@@ -831,8 +834,11 @@ static inline int RenderAXYZ( filter_t *p_filter,
...
@@ -831,8 +834,11 @@ static inline int RenderAXYZ( filter_t *p_filter,
continue
;
continue
;
i_a
=
ch
->
p_style
->
i_font_alpha
;
i_a
=
ch
->
p_style
->
i_font_alpha
;
if
(
i_a
==
STYLE_ALPHA_TRANSPARENT
)
continue
;
uint32_t
i_color
;
uint32_t
i_color
;
switch
(
g
)
{
switch
(
g
)
{
/* Apply font alpha ratio to shadow/outline alpha */
case
0
:
case
0
:
i_a
=
i_a
*
p_sys
->
p_style
->
i_shadow_alpha
/
255
;
i_a
=
i_a
*
p_sys
->
p_style
->
i_shadow_alpha
/
255
;
i_color
=
p_sys
->
p_style
->
i_shadow_color
;
i_color
=
p_sys
->
p_style
->
i_shadow_color
;
...
...
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