0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02: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
h = dys - obj->y;
if (sub_alignment == 2)
if (sub_alignment == 0)
obj->y = dys * sub_pos / 100 - h;
else if (sub_alignment == 1)
obj->y = dys * sub_pos / 100 - h / 2;