diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-11-09 15:17:06 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-11-09 15:17:06 +0000 |
commit | 4b55351e28d06e02f19e1f5bff62abf71cb8455b (patch) | |
tree | 3e6813f6c9f886aca435a3c4cd1032334f2b1e68 | |
parent | 509475ec2c85c0456584b0596176280c51f11cd6 (diff) |
Fix compilation of teletext code without freetype support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29864 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/sub.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |