From 43ed8e88c49089b9bc6cabbba528fc9b7eb6cf5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Thu, 18 Sep 2003 18:14:50 +0000 Subject: 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 --- src/libsputext/xine_decoder.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/libsputext/xine_decoder.c') 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; linelines; 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 ) -- cgit v1.2.3