mirror of
https://github.com/mpv-player/mpv
synced 2025-01-17 12:31:25 +00:00
Fix bounding box calculation with \fscx/\fscy.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22279 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3e1dde83ba
commit
2287f5662d
@ -1293,9 +1293,9 @@ static void measure_text()
|
||||
if (i < text_info.length) {
|
||||
glyph_info_t* cur = text_info.glyphs + i;
|
||||
if (cur->asc > max_asc)
|
||||
max_asc = cur->asc * render_context.scale_y;
|
||||
max_asc = cur->asc;
|
||||
if (cur->desc > max_desc)
|
||||
max_desc = cur->desc * render_context.scale_y;
|
||||
max_desc = cur->desc;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1739,6 +1739,8 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images)
|
||||
ass_font_get_asc_desc(render_context.font, code,
|
||||
&text_info.glyphs[text_info.length].asc,
|
||||
&text_info.glyphs[text_info.length].desc);
|
||||
text_info.glyphs[text_info.length].asc *= render_context.scale_y;
|
||||
text_info.glyphs[text_info.length].desc *= render_context.scale_y;
|
||||
|
||||
text_info.length++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user