reload font on each change of the display size

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15079 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
henry 2005-04-09 22:25:33 +00:00
parent b5e683f42d
commit ce22162a07
1 changed files with 4 additions and 1 deletions

View File

@ -764,7 +764,10 @@ int vo_update_osd(int dxs,int dys){
#ifdef HAVE_FREETYPE
// here is the right place to get screen dimensions
if (!vo_font || force_load_font) {
if (!vo_font
|| force_load_font
|| ((dxs != vo_image_width || dys != vo_image_height)
&& (subtitle_autoscale == 2 || subtitle_autoscale == 3))) {
force_load_font = 0;
load_font_ft(dxs, dys);
}