summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-03 08:20:00 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-03 08:20:00 +0000
commitcb9cde3f8c627d26f3104610b3f7a0506344da17 (patch)
tree0b9e6410e22d360255caea8df1fed3fe7dca1a36 /libass
parent18bee86bc1757deec932eaa545a56a9c27e2b330 (diff)
downloadmpv-cb9cde3f8c627d26f3104610b3f7a0506344da17.tar.bz2
mpv-cb9cde3f8c627d26f3104610b3f7a0506344da17.tar.xz
Fix incorrect spacing introduced in r22231:
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
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 76fa2b8c10..f89bf4d564 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -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);