mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 22:30:22 +00:00
Update font scale after changing pancan.
It makes fonts keep scale when they are set to be proportional to width. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8820 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5ba5288d2e
commit
cb66d1f0f7
@ -534,7 +534,7 @@ 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) {
|
||||
force_load_font = 0;
|
||||
load_font_ft(dxs, dys);
|
||||
}
|
||||
|
@ -2561,6 +2561,11 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
|
||||
vo_osd_progbar_type=OSD_PANSCAN;
|
||||
vo_osd_progbar_value=vo_panscan*256;
|
||||
vo_osd_changed(OSDTYPE_PROGBAR);
|
||||
#ifdef HAVE_FREETYPE
|
||||
if (subtitle_autoscale == 2)
|
||||
// force scaling font to movie width
|
||||
force_load_font = 1;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user