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 02:04:44 (GMT)
commit1e8e703c0accbd710f22603a6b7d8ba182863170 (patch)
tree9e948d57ee398f90204bc44dbd5a68951e328bae
parentae20c482d94e8c41f97cc175ff620c6e52118fb1 (diff)
Update the subtitle font if the fontstretch has changed.
A similar fix is needed for Initialise708Fonts. (cherry picked from commit 77d419b1dee24ba16cbfdccc4ac0d766e823f252)
-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 bbef05b..0272faf 100644
--- a/mythtv/libs/libmythtv/subtitlescreen.cpp
+++ b/mythtv/libs/libmythtv/subtitlescreen.cpp
@@ -920,8 +920,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;
}