summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-09 22:25:33 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-09 22:25:33 +0000
commitce22162a078ea54731a6ebc74b79c24ace53b483 (patch)
tree57a562d7d876003892ca192011f2fcfc958d5e7f /libvo
parentb5e683f42d76ea482a334dc56582b63499917c75 (diff)
downloadmpv-ce22162a078ea54731a6ebc74b79c24ace53b483.tar.bz2
mpv-ce22162a078ea54731a6ebc74b79c24ace53b483.tar.xz
reload font on each change of the display size
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15079 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/sub.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvo/sub.c b/libvo/sub.c
index c645483925..655c4615d6 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -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);
}