mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01:00
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:
parent
b5e683f42d
commit
ce22162a07
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user