Mercurial > mplayer.hg
changeset 29822:60563cd70955
Fix compilation of teletext code without freetype support
author | reimar |
---|---|
date | Mon, 09 Nov 2009 15:17:06 +0000 |
parents | ed46f577f157 |
children | baf634c992be |
files | libvo/sub.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;