Mercurial > mplayer.hg
changeset 8794:056fc0a8b3d2
sanity check
author | henry |
---|---|
date | Sun, 05 Jan 2003 13:32:57 +0000 |
parents | 63e2ab74e0a6 |
children | b4512aa07711 |
files | libvo/sub.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/sub.c Sun Jan 05 13:29:38 2003 +0000 +++ b/libvo/sub.c Sun Jan 05 13:32:57 2003 +0000 @@ -208,7 +208,15 @@ } 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: { unsigned char *s; unsigned char *sa;