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
c14d7673
Commit
c14d7673
authored
Aug 21, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freetype: only render visible bitmaps
and use limits to render underline/strikethrough correctly
parent
f64051ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+2
-2
No files found.
modules/text_renderer/freetype.c
View file @
c14d7673
...
@@ -801,7 +801,7 @@ static inline int RenderAXYZ( filter_t *p_filter,
...
@@ -801,7 +801,7 @@ static inline int RenderAXYZ( filter_t *p_filter,
int
i_align_top
=
i_margin
;
int
i_align_top
=
i_margin
;
/* Render all glyphs and underline/strikethrough */
/* Render all glyphs and underline/strikethrough */
for
(
int
i
=
0
;
i
<
p_line
->
i_character_count
;
i
++
)
for
(
int
i
=
p_line
->
i_first_visible_char_index
;
i
<=
p_line
->
i_last_visible_char_index
;
i
++
)
{
{
const
line_character_t
*
ch
=
&
p_line
->
p_character
[
i
];
const
line_character_t
*
ch
=
&
p_line
->
p_character
[
i
];
const
FT_BitmapGlyph
p_glyph
=
g
==
0
?
ch
->
p_shadow
:
g
==
1
?
ch
->
p_outline
:
ch
->
p_glyph
;
const
FT_BitmapGlyph
p_glyph
=
g
==
0
?
ch
->
p_shadow
:
g
==
1
?
ch
->
p_outline
:
ch
->
p_glyph
;
...
@@ -835,7 +835,7 @@ static inline int RenderAXYZ( filter_t *p_filter,
...
@@ -835,7 +835,7 @@ static inline int RenderAXYZ( filter_t *p_filter,
BlendPixel
);
BlendPixel
);
/* underline/strikethrough are only rendered for the normal glyph */
/* underline/strikethrough are only rendered for the normal glyph */
if
(
g
==
2
&&
ch
->
i_line_thickness
>
0
&&
p_glyph
->
bitmap
.
rows
)
if
(
g
==
2
&&
ch
->
i_line_thickness
>
0
)
BlendAXYZLine
(
p_picture
,
BlendAXYZLine
(
p_picture
,
i_glyph_x
,
i_glyph_y
+
p_glyph
->
top
,
i_glyph_x
,
i_glyph_y
+
p_glyph
->
top
,
i_a
,
i_x
,
i_y
,
i_z
,
i_a
,
i_x
,
i_y
,
i_z
,
...
...
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