From 6c8ab3f2636aa75987f30fd573f74129a6a28fca Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 22 Sep 2006 20:47:08 +0000 Subject: [PATCH] Fix width -> orig_width typo causing subtitles to be too far to the right for movies with vertical black bars (aspect < monitoraspect). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19946 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libass/ass_render.c b/libass/ass_render.c index 3a98267a16..b35f643054 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -436,7 +436,7 @@ static ass_image_t* render_text(text_info_t* text_info, int dst_x, int dst_y) * \brief Mapping between script and screen coordinates */ static int x2scr(int x) { - return x*frame_context.width / frame_context.track->PlayResX + global_settings->left_margin; + return x*frame_context.orig_width / frame_context.track->PlayResX + global_settings->left_margin; } /** * \brief Mapping between script and screen coordinates