Mercurial > mplayer.hg
diff libvo/sub.c @ 1502:ccb1f3ddb29a
atlka@pg.gda.pl:
utf8 opion corrected
added draw_osd() funcion to libvo/vo_*.c files
corrected indicators (brightness, sound etc.) to be in 0..100 range
if we have Name.utf file it automatically switches to utf8 mode
author | atlka |
---|---|
date | Mon, 13 Aug 2001 11:33:34 +0000 |
parents | d40f2b686846 |
children | 1af1f37efd67 |
line wrap: on
line diff
--- a/libvo/sub.c Mon Aug 13 11:08:18 2001 +0000 +++ b/libvo/sub.c Mon Aug 13 11:33:34 2001 +0000 @@ -187,35 +187,6 @@ memy-=vo_font->height; xsize=lastxsize=-vo_font->charspace; } - xsize+=w+vo_font->charspace; - if ((dxs<xsize && lastStripPosition>0) || j==len-1) - { - if (j==len-1) lastStripPosition=len; - else xsize=lastxsize; - j=lastStripPosition; - - x=dxs/2-xsize/2; - - for(k=previousStrip;k<lastStripPosition;k++){ - int c=text[k]; - int font; - if (sub_unicode && (c>=0x80)) c=(c<<8)+text[++k]; - font=vo_font->font[c]; - if(x>=0 && x+vo_font->width[c]<dxs) - if(font>=0) - draw_alpha(x,y, - vo_font->width[c], - vo_font->pic_a[font]->h, - vo_font->pic_b[font]->bmp+vo_font->start[c], - vo_font->pic_a[font]->bmp+vo_font->start[c], - vo_font->pic_a[font]->w); - x+=vo_font->width[c]+vo_font->charspace; - } - x=0; - y+=vo_font->height; - previousStrip=lastStripPosition; - xsize=lastxsize=-vo_font->charspace; - } } }