1
0
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:
eugeni 2007-02-19 18:37:54 +00:00
parent 3e1dde83ba
commit 2287f5662d

View File

@ -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++;