diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-03-26 11:06:39 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-03-26 11:06:39 +0000 |
commit | 28bb8ccf2791599f24ec705c6075a747d7f10030 (patch) | |
tree | 14b1ea6d20fe7c1911ca662f7ad4ca665084ba7f /src/libspucc/cc_decoder.c | |
parent | d042d5ac0e7ba8d77136c465a94c5683b16a0c9a (diff) | |
download | xine-lib-28bb8ccf2791599f24ec705c6075a747d7f10030.tar.gz xine-lib-28bb8ccf2791599f24ec705c6075a747d7f10030.tar.bz2 |
- font encoding cleanup patch by Frantisek Dvorak
- xinefonts use unicode now
- fix endianess in xine-fontconv.c
- public render text api uses locale
CVS patchset: 4486
CVS date: 2003/03/26 11:06:39
Diffstat (limited to 'src/libspucc/cc_decoder.c')
-rw-r--r-- | src/libspucc/cc_decoder.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libspucc/cc_decoder.c b/src/libspucc/cc_decoder.c index fd3238e55..ca52f869e 100644 --- a/src/libspucc/cc_decoder.c +++ b/src/libspucc/cc_decoder.c @@ -20,7 +20,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: cc_decoder.c,v 1.19 2003/03/08 14:11:52 mroi Exp $ + * $Id: cc_decoder.c,v 1.20 2003/03/26 11:06:55 miguelfreitas Exp $ * * stuff needed to provide closed captioning decoding and display * @@ -641,9 +641,11 @@ static void ccrow_render(cc_renderer_t *renderer, cc_row_t *this, int rownum) buf[i - seg_pos[seg]] = this->cells[i].c; buf[seg_pos[seg + 1] - seg_pos[seg]] = '\0'; ccrow_set_attributes(renderer, this, seg_attr[seg]); + + /* text is already mapped from EIA-608 into iso-8859-1 */ osd_renderer->render_text(renderer->cap_display, - x + cumulative_seg_width[seg], y, buf, - textcol); + x + cumulative_seg_width[seg], y, buf, + "iso-8859-1", textcol); } pos = ccrow_find_next_text_part(this, endpos); |