summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-19 17:40:31 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-19 17:40:31 +0000
commit0c1c5e7ea2e1d91e2a20944725c1e1e84d9fc639 (patch)
tree44d65d1cd81ec7b1d270f62b6229374b9aa126ca /libass
parent15ea14e08ab008836b5f365e6813f36056a00e5e (diff)
downloadmpv-0c1c5e7ea2e1d91e2a20944725c1e1e84d9fc639.tar.bz2
mpv-0c1c5e7ea2e1d91e2a20944725c1e1e84d9fc639.tar.xz
Calculate text bounding box in such way that it does not depend on the height
of individual glyphs. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19910 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 4bf9103d79..3e0d4a308b 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -1686,6 +1686,8 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images)
// determing text bounding box
compute_string_bbox(&text_info, &bbox);
+ bbox.yMin = - (text_info.lines[0].asc >> 6);
+ bbox.yMax = (text_info.height - text_info.lines[0].asc) >> 6;
// determine device coordinates for text