Commit 211ae07d authored by Christophe Mutricy's avatar Christophe Mutricy

freetype.c: BeOS fix (c++ism) and cosmetic

parent 4c640001
...@@ -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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment