summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/xine.h.in8
-rw-r--r--src/xine-engine/xine_interface.c8
2 files changed, 13 insertions, 3 deletions
diff --git a/include/xine.h.in b/include/xine.h.in
index 36a3d2108..792ef3c0f 100644
--- a/include/xine.h.in
+++ b/include/xine.h.in
@@ -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.h.in,v 1.95 2003/10/06 12:44:56 mroi Exp $
+ * $Id: xine.h.in,v 1.96 2003/10/06 19:19:04 valtri Exp $
*
* public xine-lib (libxine) interface and documentation
*
@@ -1671,6 +1671,12 @@ void xine_osd_get_text_size (xine_osd_t *self, const char *text,
as 'fontname' here */
void xine_osd_set_font (xine_osd_t *self, const char *fontname,
int size);
+/*
+ * specifying encoding of texts
+ * "" ... means current locale encoding (default)
+ * NULL ... means latin1
+ */
+void xine_osd_set_encoding(xine_osd_t *self, const char *encoding);
/* set position were overlay will be blended */
void xine_osd_set_position (xine_osd_t *self, int x, int y);
void xine_osd_show (xine_osd_t *self, int64_t vpts);
diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c
index 3f0f7b5df..b46e2b73f 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.58 2003/09/18 18:14:51 valtri Exp $
+ * $Id: xine_interface.c,v 1.59 2003/10/06 19:19:05 valtri Exp $
*
* convenience/abstraction layer, functions to implement
* libxine's public interface
@@ -602,7 +602,7 @@ xine_osd_t *xine_osd_new(xine_stream_t *stream, int x, int y, int width, int hei
this->osd.renderer->set_encoding(&this->osd, "");
return this;
}
-
+
void xine_osd_draw_point(xine_osd_t *this, int x, int y, int color) {
this->osd.renderer->point(&this->osd, x, y, color);
}
@@ -634,6 +634,10 @@ void xine_osd_set_font(xine_osd_t *this, const char *fontname, int size) {
this->osd.renderer->set_font(&this->osd, fontname, size);
}
+void xine_osd_set_encoding(xine_osd_t *this, const char *encoding) {
+ this->osd.renderer->set_encoding(&this->osd, encoding);
+}
+
void xine_osd_set_position(xine_osd_t *this, int x, int y) {
this->osd.renderer->set_position(&this->osd, x, y);
}