summaryrefslogtreecommitdiffstats
path: root/libvo/sub.c
diff options
context:
space:
mode:
authoratlka <atlka@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-17 11:44:46 +0000
committeratlka <atlka@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-17 11:44:46 +0000
commitc82d6728388df01e29a6bbaea57e55c8c779a957 (patch)
tree6db996e29d17e09bf9a58fe03ef6a8234cdbf2fd /libvo/sub.c
parent18133a83bbaf1f089156f296c369b5b9f56cbb8a (diff)
downloadmpv-c82d6728388df01e29a6bbaea57e55c8c779a957.tar.bz2
mpv-c82d6728388df01e29a6bbaea57e55c8c779a957.tar.xz
minor changes according to subtitle positioning
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1575 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/sub.c')
-rw-r--r--libvo/sub.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libvo/sub.c b/libvo/sub.c
index a1b6e88f57..dd5ea6d2f4 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -193,10 +193,11 @@ inline static void vo_draw_text_sub(int dxs,int dys,void (*draw_alpha)(int x0,in
l=0;
break;
} else if(l || j<len){ // not last line or there is no eol
- y=vo_font->height;
+ y=0;
xsize=lastxsize=-vo_font->charspace;
- }
- memy-=y; // according to max of vo_font->pic_a[font]->h
+ memy -=vo_font->height;
+ } else
+ memy-=y; // according to max of vo_font->pic_a[font]->h
} // in last line
}
}