sanity check

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8795 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
henry 2003-01-05 13:32:57 +00:00
parent 2947415dce
commit 34b70a1c77
1 changed files with 9 additions and 1 deletions

View File

@ -208,7 +208,15 @@ inline static void vo_update_text_progbar(mp_osd_obj_t* obj,int dxs,int dys){
} }
alloc_buf(obj); alloc_buf(obj);
{
int minw = vo_font->width[OSD_PB_START]+vo_font->width[OSD_PB_END]+vo_font->width[OSD_PB_0];
if (vo_osd_progbar_type>0 && vo_font->font[vo_osd_progbar_type]>=0){
minw += vo_font->width[vo_osd_progbar_type]+vo_font->charspace+vo_font->spacewidth;
}
if (obj->bbox.x2 - obj->bbox.x1 < minw) return; // space too small, don't render anything
}
// render it: // render it:
{ unsigned char *s; { unsigned char *s;
unsigned char *sa; unsigned char *sa;