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/xine-engine/xine_interface.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/xine-engine/xine_interface.c') diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c index c026bbca1..3f0f7b5df 100644 --- a/src/xine-engine/xine_interface.c +++ b/src/xine-engine/xine_interface.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_interface.c,v 1.57 2003/08/26 21:18:32 miguelfreitas Exp $ + * $Id: xine_interface.c,v 1.58 2003/09/18 18:14:51 valtri Exp $ * * convenience/abstraction layer, functions to implement * libxine's public interface @@ -599,6 +599,7 @@ const char *xine_get_meta_info (xine_stream_t *stream, int info) { xine_osd_t *xine_osd_new(xine_stream_t *stream, int x, int y, int width, int height) { xine_osd_t *this = (xine_osd_t *)stream->osd_renderer->new_object(stream->osd_renderer, width, height); this->osd.renderer->set_position(&this->osd, x, y); + this->osd.renderer->set_encoding(&this->osd, ""); return this; } @@ -622,7 +623,7 @@ void xine_osd_draw_rect(xine_osd_t *this, int x1, int y1, int x2, int y2, int co } void xine_osd_draw_text(xine_osd_t *this, int x1, int y1, const char *text, int color_base) { - this->osd.renderer->render_text(&this->osd, x1, y1, text, NULL, color_base); + this->osd.renderer->render_text(&this->osd, x1, y1, text, color_base); } void xine_osd_get_text_size(xine_osd_t *this, const char *text, int *width, int *height) { -- cgit v1.2.3