diff options
author | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-10 23:10:24 +0000 |
---|---|---|
committer | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-10 23:10:24 +0000 |
commit | d9b33edbba28e29aeb94b7f4acae099175302a16 (patch) | |
tree | bc3bf24fa9d89f1c3a803dcb1403f4adac4f6737 /libvo/sub.c | |
parent | ba02c7d52330bd24fca5c079d7099b539d05564f (diff) | |
download | mpv-d9b33edbba28e29aeb94b7f4acae099175302a16.tar.bz2 mpv-d9b33edbba28e29aeb94b7f4acae099175302a16.tar.xz |
progbar osd buffer height adjustment fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8423 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/sub.c')
-rw-r--r-- | libvo/sub.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libvo/sub.c b/libvo/sub.c index 075431df5e..d48f84c05e 100644 --- a/libvo/sub.c +++ b/libvo/sub.c @@ -185,14 +185,15 @@ inline static void vo_update_text_progbar(mp_osd_obj_t* obj,int dxs,int dys){ int elems=width/charw; int x=(dxs-elems*charw-delimw)/2; int delta = 0; - if (vo_osd_progbar_type>0 && vo_font->font[vo_osd_progbar_type]>=0){ - delta = vo_font->width[vo_osd_progbar_type]+vo_font->spacewidth; - delta = (x-delta > 0) ? delta : x; - } h=get_height(OSD_PB_START,h); h=get_height(OSD_PB_END,h); h=get_height(OSD_PB_0,h); h=get_height(OSD_PB_1,h); + if (vo_osd_progbar_type>0 && vo_font->font[vo_osd_progbar_type]>=0){ + delta = vo_font->width[vo_osd_progbar_type]+vo_font->spacewidth; + delta = (x-delta > 0) ? delta : x; + h=get_height(vo_osd_progbar_type,h); + } obj->bbox.x1=obj->x=x; obj->bbox.y1=obj->y=y; obj->bbox.x2=x+width+delimw; |