Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
9d0665c0
Commit
9d0665c0
authored
Oct 05, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added (back?) support for automatic font size when using a style in freetype.
It closes the other half of #5375.
parent
5b323eff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+4
-2
No files found.
modules/text_renderer/freetype.c
View file @
9d0665c0
...
@@ -1453,7 +1453,8 @@ static int ProcessNodes( filter_t *p_filter,
...
@@ -1453,7 +1453,8 @@ static int ProcessNodes( filter_t *p_filter,
{
{
rv
=
PushFont
(
&
p_fonts
,
rv
=
PushFont
(
&
p_fonts
,
p_font_style
->
psz_fontname
,
p_font_style
->
psz_fontname
,
p_font_style
->
i_font_size
,
p_font_style
->
i_font_size
>
0
?
p_font_style
->
i_font_size
:
p_sys
->
i_font_size
,
(
p_font_style
->
i_font_color
&
0xffffff
)
|
(
p_font_style
->
i_font_color
&
0xffffff
)
|
((
p_font_style
->
i_font_alpha
&
0xff
)
<<
24
),
((
p_font_style
->
i_font_alpha
&
0xff
)
<<
24
),
(
p_font_style
->
i_karaoke_background_color
&
0xffffff
)
|
(
p_font_style
->
i_karaoke_background_color
&
0xffffff
)
|
...
@@ -2349,7 +2350,8 @@ static int RenderCommon( filter_t *p_filter, subpicture_region_t *p_region_out,
...
@@ -2349,7 +2350,8 @@ static int RenderCommon( filter_t *p_filter, subpicture_region_t *p_region_out,
text_style_t
*
p_style
;
text_style_t
*
p_style
;
if
(
p_region_in
->
p_style
)
if
(
p_region_in
->
p_style
)
p_style
=
CreateStyle
(
p_region_in
->
p_style
->
psz_fontname
,
p_style
=
CreateStyle
(
p_region_in
->
p_style
->
psz_fontname
,
p_region_in
->
p_style
->
i_font_size
,
p_region_in
->
p_style
->
i_font_size
>
0
?
p_region_in
->
p_style
->
i_font_size
:
p_sys
->
i_font_size
,
(
p_region_in
->
p_style
->
i_font_color
&
0xffffff
)
|
(
p_region_in
->
p_style
->
i_font_color
&
0xffffff
)
|
((
p_region_in
->
p_style
->
i_font_alpha
&
0xff
)
<<
24
),
((
p_region_in
->
p_style
->
i_font_alpha
&
0xff
)
<<
24
),
0x00ffffff
,
0x00ffffff
,
...
...
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