Mercurial > mplayer.hg
changeset 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 |
files | libvo/sub.c libvo/video_out_internal.h libvo/vo_odivx.c libvo/vo_pgm.c |
diffstat | 4 files changed, 9 insertions(+), 29 deletions(-) [+] |
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; - } } }
--- a/libvo/video_out_internal.h Mon Aug 13 11:08:18 2001 +0000 +++ b/libvo/video_out_internal.h Mon Aug 13 11:33:34 2001 +0000 @@ -25,6 +25,7 @@ static const vo_info_t* get_info(void); static uint32_t draw_frame(uint8_t *src[]); static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y); +static void draw_osd(void); static void flip_page(void); static void check_events(void); static void uninit(void);