# HG changeset patch # User reimar # Date 1257779826 0 # Node ID 60563cd7095565a9a3aead1ff40c4dec8eff050a # Parent ed46f577f157edcde3e8ac533bab4aee19ea8083 Fix compilation of teletext code without freetype support diff -r ed46f577f157 -r 60563cd70955 libvo/sub.c --- a/libvo/sub.c Mon Nov 09 15:11:54 2009 +0000 +++ b/libvo/sub.c Mon Nov 09 15:17:06 2009 +0000 @@ -351,6 +351,7 @@ 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 @@ obj->flags&=~OSDFLAG_VISIBLE; return; } +#endif cols=dxs/wm; rows=dys/hm;