diff libvo/sub.c @ 8422:1f1cc58e8e65

progbar osd buffer height adjustment fix
author henry
date Tue, 10 Dec 2002 23:10:24 +0000
parents 2202c00001e3
children fb88ccbc5ccc
line wrap: on
line diff
--- 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;