diff options
author | František Dvořák <valtri@users.sourceforge.net> | 2003-09-18 18:14:50 +0000 |
---|---|---|
committer | František Dvořák <valtri@users.sourceforge.net> | 2003-09-18 18:14:50 +0000 |
commit | 43ed8e88c49089b9bc6cabbba528fc9b7eb6cf5e (patch) | |
tree | e6a3402ce996d4313c0cbd8d8fe80d3dec059a8c /src/libsputext/xine_decoder.c | |
parent | 02c325dc9e6584c71fb67449aeb505373141724a (diff) | |
download | xine-lib-43ed8e88c49089b9bc6cabbba528fc9b7eb6cf5e.tar.gz xine-lib-43ed8e88c49089b9bc6cabbba528fc9b7eb6cf5e.tar.bz2 |
Generating codepages with more than 256 characters (max. 16-bit).
Right computing text size of multibyte texts in OSD.
Different alias character for missing character in the conversion
and in the font: #, _
CVS patchset: 5402
CVS date: 2003/09/18 18:14:50
Diffstat (limited to 'src/libsputext/xine_decoder.c')
-rw-r--r-- | src/libsputext/xine_decoder.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libsputext/xine_decoder.c b/src/libsputext/xine_decoder.c index 4f3c02cc4..af53c0828 100644 --- a/src/libsputext/xine_decoder.c +++ b/src/libsputext/xine_decoder.c @@ -17,7 +17,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: xine_decoder.c,v 1.61 2003/07/12 17:04:36 miguelfreitas Exp $ + * $Id: xine_decoder.c,v 1.62 2003/09/18 18:14:50 valtri Exp $ * */ @@ -161,7 +161,9 @@ static void draw_subtitle(sputext_decoder_t *this, int64_t sub_start, int64_t su y = (SUB_MAX_TEXT - this->lines) * this->line_height; font_size = this->font_size; - + + this->renderer->set_encoding(this->osd, this->class->src_encoding); + for (line=0; line<this->lines; line++) { int w,h,x; @@ -179,8 +181,7 @@ static void draw_subtitle(sputext_decoder_t *this, int64_t sub_start, int64_t su } this->renderer->render_text (this->osd, x, y + line*this->line_height, - this->text[line], this->class->src_encoding, - OSD_TEXT1); + this->text[line], OSD_TEXT1); } if( font_size != this->font_size ) |