]> git.vomp.tv Git - vompclient.git/commitdiff
Fix black background for 16:9 live TV on 4:3 screen
authorChris Tallon <chris@vomp.tv>
Tue, 3 Mar 2020 17:15:46 +0000 (17:15 +0000)
committerChris Tallon <chris@vomp.tv>
Tue, 3 Mar 2020 17:15:46 +0000 (17:15 +0000)
vvideolivetv.cc

index c09a0baa417369db0913792e6f686e0c0fcaa15a..77a0aa172bbe4f1f7fad04c1e5eabee38bb4be87 100644 (file)
@@ -103,13 +103,18 @@ VVideoLiveTV::VVideoLiveTV(ChannelList* tchanList, ULONG initialChannelNumber, V
   DrawStyle transparent(0, 0, 0, 0);
   setBackgroundColour(transparent);
 
+  OsdVector* osdv = dynamic_cast<OsdVector*>(Osd::getInstance());
+  if (osdv)
+  {
+    osdv->updateBackgroundColor(DrawStyle::BLACK);
+  }
+
   // This variable is set to true if the user pressed OK to bring the OSD on screen
   // This is only used on old remotes to stop up/down buttons being used for osd-epg scrolling
   okTriggeredOSD = false;
 
   TVMediaInfo info;
   info.setChannelLogo(initialChannelNumber);
-  OsdVector *osdv=dynamic_cast<OsdVector*>(Osd::getInstance());
 
   if (osdv && streamType == VDR::RADIO) {
          radioChannelLogo.setPosition(video->getScreenWidth()/4,video->getScreenHeight()/4);
@@ -1143,7 +1148,7 @@ void VVideoLiveTV::processMessage(Message* m)
         OsdVector* osdv=dynamic_cast<OsdVector*>(Osd::getInstance());
         if (osdv)
         {
-         osdv->updateBackgroundColor(DrawStyle::WALLPAPER);
+         osdv->updateBackgroundColor(DrawStyle::BLACK);
         }