1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-14 19:05:33 +00:00

The conditions for bottom (2) and top (1) subtitle alignment are reversed.

patch by Paul TT < paultt == at -- hackerjournal == dot -- it >


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16835 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2005-10-23 14:25:56 +00:00
parent 23efec2b19
commit a2220dbb7a

View File

@ -627,7 +627,7 @@ inline static void vo_update_text_sub(mp_osd_obj_t* obj,int dxs,int dys){
} }
/// vertical alignment /// vertical alignment
h = dys - obj->y; h = dys - obj->y;
if (sub_alignment == 2) if (sub_alignment == 0)
obj->y = dys * sub_pos / 100 - h; obj->y = dys * sub_pos / 100 - h;
else if (sub_alignment == 1) else if (sub_alignment == 1)
obj->y = dys * sub_pos / 100 - h / 2; obj->y = dys * sub_pos / 100 - h / 2;