diff options
-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; |