From d9b33edbba28e29aeb94b7f4acae099175302a16 Mon Sep 17 00:00:00 2001 From: henry Date: Tue, 10 Dec 2002 23:10:24 +0000 Subject: progbar osd buffer height adjustment fix git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8423 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/sub.c | 9 +++++---- 1 file 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; -- cgit v1.2.3