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
This commit is contained in:
reimar 2006-09-22 20:47:08 +00:00
parent 953d001217
commit 6c8ab3f263
1 changed files with 1 additions and 1 deletions

View File

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