summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2011-02-01 01:44:31 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-02-01 01:44:31 (GMT)
commit77d419b1dee24ba16cbfdccc4ac0d766e823f252 (patch)
tree7ccd203c81f1f23bf34485674b43f3c1ba2088c1
parent48590321e09bd2c6473040caa0a695d7453c215f (diff)
Update the subtitle font if the fontstretch has changed.
A similar fix is needed for Initialise708Fonts.
-rw-r--r--mythtv/libs/libmythtv/subtitlescreen.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/mythtv/libs/libmythtv/subtitlescreen.cpp b/mythtv/libs/libmythtv/subtitlescreen.cpp
index 2456208..5007646 100644
--- a/mythtv/libs/libmythtv/subtitlescreen.cpp
+++ b/mythtv/libs/libmythtv/subtitlescreen.cpp
@@ -921,8 +921,11 @@ bool SubtitleScreen::InitialiseFont(int fontStretch)
QString font = gCoreContext->GetSetting("OSDSubFont", "FreeSans");
if (initialised)
{
- if (gTextSubFont->face().family() == font)
- return gTextSubFont;
+ if (gTextSubFont->face().family() == font &&
+ gTextSubFont->face().stretch() == fontStretch)
+ {
+ return true;
+ }
delete gTextSubFont;
}