# HG changeset patch # User henry # Date 1039561824 0 # Node ID 1f1cc58e8e655ebed3056b3eaa6a9c8b3324a631 # Parent 1f96b714d374748437347c330c4cf40db5da274a progbar osd buffer height adjustment fix diff -r 1f96b714d374 -r 1f1cc58e8e65 libvo/sub.c --- a/libvo/sub.c Tue Dec 10 21:43:43 2002 +0000 +++ b/libvo/sub.c Tue Dec 10 23:10:24 2002 +0000 @@ -185,14 +185,15 @@ 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;