summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-11-26 14:00:05 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-11-26 14:00:05 +0000
commit304c73ac52c34e0f61da78afb1a1b217133471ff (patch)
treea1efa43c97771aeeb3fdcf1b875dae551eba481f
parenta49410074fd4df1f0ca7797e8b4e0ee6a845b927 (diff)
downloadxine-lib-304c73ac52c34e0f61da78afb1a1b217133471ff.tar.gz
xine-lib-304c73ac52c34e0f61da78afb1a1b217133471ff.tar.bz2
xine_osd_set_font return int
CVS patchset: 5787 CVS date: 2003/11/26 14:00:05
-rw-r--r--include/xine.h.in4
-rw-r--r--src/xine-engine/xine_interface.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/include/xine.h.in b/include/xine.h.in
index 70f71a3aa..479c75535 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.106 2003/11/26 13:33:54 miguelfreitas Exp $
+ * $Id: xine.h.in,v 1.107 2003/11/26 14:00:05 miguelfreitas Exp $
*
* public xine-lib (libxine) interface and documentation
*
@@ -1699,7 +1699,7 @@ void xine_osd_get_text_size (xine_osd_t *self, const char *text,
int *width, int *height);
/* with freetype2 support compiled in, you can also specify a font file
as 'fontname' here */
-void xine_osd_set_font (xine_osd_t *self, const char *fontname,
+int xine_osd_set_font (xine_osd_t *self, const char *fontname,
int size);
/*
* specifying encoding of texts
diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c
index 298cf8c6a..dc9ad892a 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.68 2003/11/26 13:33:55 miguelfreitas Exp $
+ * $Id: xine_interface.c,v 1.69 2003/11/26 14:00:06 miguelfreitas Exp $
*
* convenience/abstraction layer, functions to implement
* libxine's public interface
@@ -634,8 +634,8 @@ void xine_osd_get_text_size(xine_osd_t *this, const char *text, int *width, int
this->osd.renderer->get_text_size(&this->osd, text, width, height);
}
-void xine_osd_set_font(xine_osd_t *this, const char *fontname, int size) {
- this->osd.renderer->set_font(&this->osd, fontname, size);
+int xine_osd_set_font(xine_osd_t *this, const char *fontname, int size) {
+ return this->osd.renderer->set_font(&this->osd, fontname, size);
}
void xine_osd_set_encoding(xine_osd_t *this, const char *encoding) {