From: Chris Tallon Date: Tue, 3 Mar 2020 17:15:46 +0000 (+0000) Subject: Fix black background for 16:9 live TV on 4:3 screen X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=5a79b3ff0a237bd75b4bbc72b3494814e13d7b80;p=vompclient.git Fix black background for 16:9 live TV on 4:3 screen --- diff --git a/vvideolivetv.cc b/vvideolivetv.cc index c09a0ba..77a0aa1 100644 --- a/vvideolivetv.cc +++ b/vvideolivetv.cc @@ -103,13 +103,18 @@ VVideoLiveTV::VVideoLiveTV(ChannelList* tchanList, ULONG initialChannelNumber, V DrawStyle transparent(0, 0, 0, 0); setBackgroundColour(transparent); + OsdVector* osdv = dynamic_cast(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(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(Osd::getInstance()); if (osdv) { - osdv->updateBackgroundColor(DrawStyle::WALLPAPER); + osdv->updateBackgroundColor(DrawStyle::BLACK); }