From 4c61104675de5f1fac7e7fa95fb5743e18defc02 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 21 Dec 2013 11:25:03 +0100 Subject: Version 1.2.0pre --- tvguideosd.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'tvguideosd.c') diff --git a/tvguideosd.c b/tvguideosd.c index 67b3c33..5cccc67 100644 --- a/tvguideosd.c +++ b/tvguideosd.c @@ -38,9 +38,16 @@ void cTvGuideOsd::Show(void) { bool ok = false; ok = osdManager.setOsd(); if (ok) { - tvguideConfig.setDynamicValues(osdManager.Width(), osdManager.Height()); - tvguideConfig.loadTheme(); - tvguideConfig.SetBlending(); + bool themeChanged = tvguideConfig.LoadTheme(); + tvguideConfig.SetStyle(); + tvguideConfig.setDynamicValues(); + bool geoChanged = geoManager.SetGeometry(cOsd::OsdWidth(), cOsd::OsdHeight()); + if (themeChanged || geoChanged) { + fontManager.DeleteFonts(); + fontManager.SetFonts(); + imgCache.Clear(); + imgCache.CreateCache(); + } osdManager.setBackground(); myTime = new cMyTime(); myTime->Now(); @@ -66,6 +73,7 @@ void cTvGuideOsd::drawOsd() { cChannel *startChannel = Channels.GetByNumber(cDevice::CurrentChannel()); if (tvguideConfig.displayStatusHeader) { statusHeader = new cStatusHeader(); + statusHeader->Draw(); statusHeader->ScaleVideo(); } timeLine = new cTimeLine(myTime); -- cgit v1.2.3