Mercurial > mplayer.hg
comparison libvo/sub.c @ 15078:b22f4ce0580a
reload font on each change of the display size
author | henry |
---|---|
date | Sat, 09 Apr 2005 22:25:33 +0000 |
parents | e047e70a9767 |
children | 1f8a1de5585c |
comparison
equal
deleted
inserted
replaced
15077:a893e0bfa9d6 | 15078:b22f4ce0580a |
---|---|
762 mp_osd_obj_t* obj=vo_osd_list; | 762 mp_osd_obj_t* obj=vo_osd_list; |
763 int chg=0; | 763 int chg=0; |
764 | 764 |
765 #ifdef HAVE_FREETYPE | 765 #ifdef HAVE_FREETYPE |
766 // here is the right place to get screen dimensions | 766 // here is the right place to get screen dimensions |
767 if (!vo_font || force_load_font) { | 767 if (!vo_font |
768 || force_load_font | |
769 || ((dxs != vo_image_width || dys != vo_image_height) | |
770 && (subtitle_autoscale == 2 || subtitle_autoscale == 3))) { | |
768 force_load_font = 0; | 771 force_load_font = 0; |
769 load_font_ft(dxs, dys); | 772 load_font_ft(dxs, dys); |
770 } | 773 } |
771 #endif | 774 #endif |
772 | 775 |