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
81af7a35
Commit
81af7a35
authored
Aug 13, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freetype: stick to single precision
parent
600e3556
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+3
-3
No files found.
modules/text_renderer/freetype.c
View file @
81af7a35
...
...
@@ -1860,7 +1860,7 @@ static int Init_FT( vlc_object_t *p_this,
if
(
SetFontSize
(
p_filter
,
0
)
!=
VLC_SUCCESS
)
goto
error
;
p_sys
->
p_stroker
=
NULL
;
if
(
f_outline_thickness
>
0
.
001
)
if
(
f_outline_thickness
>
.
001
f
)
{
i_error
=
FT_Stroker_New
(
p_sys
->
p_library
,
&
p_sys
->
p_stroker
);
if
(
i_error
)
...
...
@@ -1928,8 +1928,8 @@ static int Create( vlc_object_t *p_this )
float
f_shadow_angle
=
var_InheritFloat
(
p_filter
,
"freetype-shadow-angle"
);
float
f_shadow_distance
=
var_InheritFloat
(
p_filter
,
"freetype-shadow-distance"
);
f_shadow_distance
=
VLC_CLIP
(
f_shadow_distance
,
0
,
1
);
p_sys
->
f_shadow_vector_x
=
f_shadow_distance
*
cos
(
2
*
M_PI
*
f_shadow_angle
/
360
);
p_sys
->
f_shadow_vector_y
=
f_shadow_distance
*
sin
(
2
*
M_PI
*
f_shadow_angle
/
360
);
p_sys
->
f_shadow_vector_x
=
f_shadow_distance
*
cos
f
((
float
)(
2
.
*
M_PI
)
*
f_shadow_angle
/
360
);
p_sys
->
f_shadow_vector_y
=
f_shadow_distance
*
sin
f
((
float
)(
2
.
*
M_PI
)
*
f_shadow_angle
/
360
);
/* Set default psz_fontname */
if
(
!
psz_fontname
||
!*
psz_fontname
)
...
...
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