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
d4b2e75e
Commit
d4b2e75e
authored
Aug 24, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freetype: only render visible glyphs
parent
47b7d83d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+8
-2
No files found.
modules/text_renderer/freetype.c
View file @
d4b2e75e
...
@@ -788,8 +788,6 @@ static inline int RenderAXYZ( filter_t *p_filter,
...
@@ -788,8 +788,6 @@ 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
)
{
/* Apply font alpha ratio to shadow/outline alpha */
switch
(
g
)
{
/* Apply font alpha ratio to shadow/outline alpha */
...
@@ -805,6 +803,14 @@ static inline int RenderAXYZ( filter_t *p_filter,
...
@@ -805,6 +803,14 @@ static inline int RenderAXYZ( filter_t *p_filter,
i_color
=
ch
->
p_style
->
i_font_color
;
i_color
=
ch
->
p_style
->
i_font_color
;
break
;
break
;
}
}
/* Don't render if invisible or not wanted */
if
(
i_a
==
STYLE_ALPHA_TRANSPARENT
||
(
g
==
0
&&
0
==
(
ch
->
p_style
->
i_style_flags
&
STYLE_SHADOW
)
)
||
(
g
==
1
&&
0
==
(
ch
->
p_style
->
i_style_flags
&
STYLE_OUTLINE
)
)
)
continue
;
ExtractComponents
(
i_color
,
&
i_x
,
&
i_y
,
&
i_z
);
ExtractComponents
(
i_color
,
&
i_x
,
&
i_y
,
&
i_z
);
int
i_glyph_y
=
i_align_top
-
p_glyph
->
top
+
p_bbox
->
yMax
+
p_line
->
i_base_line
;
int
i_glyph_y
=
i_align_top
-
p_glyph
->
top
+
p_bbox
->
yMax
+
p_line
->
i_base_line
;
...
...
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