mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
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
This commit is contained in:
parent
18bee86bc1
commit
cb9cde3f8c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user