summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-10-23 14:25:56 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-10-23 14:25:56 +0000
commita2220dbb7a78ce50b11fe5db02cd2cde0f9d3cfd (patch)
tree70c4bc4bbef307a78567c43e387f8436518ec306 /libvo
parent23efec2b1992de498da42711fd4db0582ac9a2c9 (diff)
downloadmpv-a2220dbb7a78ce50b11fe5db02cd2cde0f9d3cfd.tar.bz2
mpv-a2220dbb7a78ce50b11fe5db02cd2cde0f9d3cfd.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/sub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/sub.c b/libvo/sub.c
index c627812167..e7d916c2b4 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -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;