diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-01 01:22:30 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-01 01:22:30 +0000 |
commit | b61657c12c4af79bfbe932a49ca321edf675901a (patch) | |
tree | 771895c0283b0ecbd1e462b49e098447c9531f0d /stream/tvi_vbi.c | |
parent | b53264188b21e4940a6482b829aac5f1c7f9440b (diff) | |
download | mpv-b61657c12c4af79bfbe932a49ca321edf675901a.tar.bz2 mpv-b61657c12c4af79bfbe932a49ca321edf675901a.tar.xz |
Proper support for flashing chars in teletext pages.
Patch from Otvos Attila oattila at chello dot hu
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24312 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/tvi_vbi.c')
-rw-r--r-- | stream/tvi_vbi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/stream/tvi_vbi.c b/stream/tvi_vbi.c index f5513528d8..a93d9de400 100644 --- a/stream/tvi_vbi.c +++ b/stream/tvi_vbi.c @@ -690,6 +690,7 @@ static void decode_page(tt_char* p,unsigned char* raw,int primary_lang,int secon int separated=0; int conceal=0; int hold=0; + int flash=0; tt_char tt_held=tt_space; for(col=0;col<VBI_COLUMNS;col++){ int i=row*VBI_COLUMNS+col; @@ -704,10 +705,12 @@ static void decode_page(tt_char* p,unsigned char* raw,int primary_lang,int secon p[i].ctl=(c&0x60)==0?1:0; p[i].fg=fg_color; p[i].bg=bg_color; + p[i].flh=flash; if ((c&0x60)==0){ //control chars if(c>=0x08 && c<=0x09){//Flash/Steady - FFSWAP(int,bg_color,fg_color); + flash=c==0x08; + p[i].flh=flash; if(c==0x09){ p[i].fg=fg_color; p[i].bg=bg_color; |