From: eugeni Date: Tue, 1 May 2007 15:14:22 +0000 (+0000) Subject: Move get_bitmap_glyph() call to a separate loop. X-Git-Tag: 0.9.7~278 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bea23320d4247b5e997c438d06ebeb818074b287;p=libass Move get_bitmap_glyph() call to a separate loop. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23192 b3059339-0415-0410-9bf9-f77b7e298cf2 --- diff --git a/libass/ass_render.c b/libass/ass_render.c index d4c2bc0..f397a57 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1966,10 +1966,12 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images) info->hash_key.shift_x = 0; info->hash_key.shift_y = 0; } - get_bitmap_glyph(info); } } + for (i = 0; i < text_info.length; ++i) + get_bitmap_glyph(text_info.glyphs + i); + event_images->top = device_y - d6_to_int(text_info.lines[0].asc); event_images->height = d6_to_int(text_info.height); event_images->detect_collisions = render_context.detect_collisions;