diff options
author | atlka <atlka@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-13 11:33:34 +0000 |
---|---|---|
committer | atlka <atlka@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-13 11:33:34 +0000 |
commit | 8a50a66922756a5778572428ff0024e4e2f7d665 (patch) | |
tree | 475726b90aba588f1c47c9c35695040e8bcf280d /libvo/sub.c | |
parent | ca99c8dc89eba6bb2ebb330beaccea304a930da0 (diff) | |
download | mpv-8a50a66922756a5778572428ff0024e4e2f7d665.tar.bz2 mpv-8a50a66922756a5778572428ff0024e4e2f7d665.tar.xz |
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
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1503 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/sub.c')
-rw-r--r-- | libvo/sub.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libvo/sub.c b/libvo/sub.c index 610b0d48c0..c16c56f8f5 100644 --- a/libvo/sub.c +++ b/libvo/sub.c @@ -187,35 +187,6 @@ inline static void vo_draw_text_sub(int dxs,int dys,void (*draw_alpha)(int x0,in 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; - } } } |