Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
211ae07d
Commit
211ae07d
authored
Dec 12, 2005
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freetype.c: BeOS fix (c++ism) and cosmetic
parent
4c640001
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
26 deletions
+27
-26
modules/misc/freetype.c
modules/misc/freetype.c
+27
-26
No files found.
modules/misc/freetype.c
View file @
211ae07d
...
@@ -526,10 +526,11 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
...
@@ -526,10 +526,11 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
#if defined(HAVE_FRIBIDI)
#if defined(HAVE_FRIBIDI)
{
{
uint32_t
*
p_fribidi_string
;
uint32_t
*
p_fribidi_string
;
int
start_pos
,
pos
=
0
;
p_fribidi_string
=
malloc
(
(
i_string_length
+
1
)
*
sizeof
(
uint32_t
)
);
p_fribidi_string
=
malloc
(
(
i_string_length
+
1
)
*
sizeof
(
uint32_t
)
);
/* Do bidi conversion line-by-line */
/* Do bidi conversion line-by-line */
int
pos
=
0
;
while
(
pos
<
i_string_length
)
while
(
pos
<
i_string_length
)
{
{
while
(
pos
<
i_string_length
)
{
while
(
pos
<
i_string_length
)
{
...
@@ -539,7 +540,7 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
...
@@ -539,7 +540,7 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
p_fribidi_string
[
pos
]
=
i_char
;
p_fribidi_string
[
pos
]
=
i_char
;
++
pos
;
++
pos
;
}
}
int
start_pos
=
pos
;
start_pos
=
pos
;
while
(
pos
<
i_string_length
)
{
while
(
pos
<
i_string_length
)
{
i_char
=
psz_unicode
[
pos
];
i_char
=
psz_unicode
[
pos
];
if
(
i_char
==
'\r'
||
i_char
==
'\n'
)
if
(
i_char
==
'\r'
||
i_char
==
'\n'
)
...
...
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