From 4b55351e28d06e02f19e1f5bff62abf71cb8455b Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 9 Nov 2009 15:17:06 +0000 Subject: [PATCH] Fix compilation of teletext code without freetype support git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29864 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/sub.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvo/sub.c b/libvo/sub.c index e945cd1a4d..d0abbf30cc 100644 --- a/libvo/sub.c +++ b/libvo/sub.c @@ -351,6 +351,7 @@ inline static void vo_update_text_teletext(mp_osd_obj_t *obj, int dxs, int dys) hm=vo_font->height+1; wm=dxs*hm*max_rows/(dys*VBI_COLUMNS); +#ifdef CONFIG_FREETYPE //very simple teletext font auto scaling if(!vo_osd_teletext_scale && hm*(max_rows+1)>dys){ osd_font_scale_factor*=1.0*(dys)/((max_rows+1)*hm); @@ -359,6 +360,7 @@ inline static void vo_update_text_teletext(mp_osd_obj_t *obj, int dxs, int dys) obj->flags&=~OSDFLAG_VISIBLE; return; } +#endif cols=dxs/wm; rows=dys/hm;