]> granicus.if.org Git - libass/commitdiff
Fix incorrect spacing introduced in r22231:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 3 Mar 2007 08:20:00 +0000 (08:20 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 3 Mar 2007 08:20:00 +0000 (08:20 +0000)
these two lines were supposed to perform truncation, not rounding.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22419 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index 76fa2b8c1037115c02c50fd028526c4ba18c1b55..f89bf4d564e01da1d84fca19f0a0bdb6abe6910d 100644 (file)
@@ -1724,8 +1724,8 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images)
                        continue;
                }
                
-               text_info.glyphs[text_info.length].pos.x = d6_to_int(pen.x);
-               text_info.glyphs[text_info.length].pos.y = d6_to_int(pen.y);
+               text_info.glyphs[text_info.length].pos.x = pen.x >> 6;
+               text_info.glyphs[text_info.length].pos.y = pen.y >> 6;
                
                pen.x += text_info.glyphs[text_info.length].advance.x;
                pen.x += double_to_d6(render_context.hspacing);