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:
parent
23efec2b19
commit
a2220dbb7a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user