From 304c73ac52c34e0f61da78afb1a1b217133471ff Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Wed, 26 Nov 2003 14:00:05 +0000 Subject: xine_osd_set_font return int CVS patchset: 5787 CVS date: 2003/11/26 14:00:05 --- include/xine.h.in | 4 ++-- src/xine-engine/xine_interface.c | 6 +++--- 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) { -- cgit v1.2.3