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
4b983bd7
Commit
4b983bd7
authored
Feb 01, 2016
by
Salah-Eddin Shaban
Committed by
Jean-Baptiste Kempf
Feb 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freetype: avoid left shift of negative values
Close #16484 Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
75ff8667
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
modules/text_renderer/freetype/text_layout.c
modules/text_renderer/freetype/text_layout.c
+7
-0
No files found.
modules/text_renderer/freetype/text_layout.c
View file @
4b983bd7
...
@@ -1495,6 +1495,13 @@ int LayoutText( filter_t *p_filter, line_desc_t **pp_lines,
...
@@ -1495,6 +1495,13 @@ int LayoutText( filter_t *p_filter, line_desc_t **pp_lines,
* and any extra width caused by visual reordering
* and any extra width caused by visual reordering
*/
*/
int
i_max_width
=
(
int
)
p_filter
->
fmt_out
.
video
.
i_visible_width
-
i_max_advance_x
;
int
i_max_width
=
(
int
)
p_filter
->
fmt_out
.
video
.
i_visible_width
-
i_max_advance_x
;
if
(
i_max_width
<=
0
)
{
msg_Err
(
p_filter
,
"LayoutText(): Invalid max width"
);
goto
error
;
}
if
(
LayoutParagraph
(
p_filter
,
p_paragraph
,
if
(
LayoutParagraph
(
p_filter
,
p_paragraph
,
i_max_width
,
pp_line
,
b_grid
)
)
i_max_width
,
pp_line
,
b_grid
)
)
goto
error
;
goto
error
;
...
...
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