From c9af09e064aabd9c857a6e54d0bb2e8962aac414 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 4 Mar 2016 23:26:58 +0100 Subject: [PATCH] CUpnpBrowserGui: fix paint image while scroll, use transparent background Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/145209aaa160801615f9c6148bf3aa72adf04a49 Author: Thilo Graf Date: 2016-03-04 (Fri, 04 Mar 2016) --- src/gui/upnpbrowser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/upnpbrowser.cpp b/src/gui/upnpbrowser.cpp index 5baa6df67..73ee2a79e 100644 --- a/src/gui/upnpbrowser.cpp +++ b/src/gui/upnpbrowser.cpp @@ -1096,6 +1096,8 @@ void CUpnpBrowserGui::paintItemInfo(UPnPEntry *entry) int y_image = ibox.getYPos() + ibox.getHeight()/2 - h_image/2; if (!image){ image = new CComponentsPicture(100, y_image, tmpname, NULL, CC_SHADOW_OFF, COL_MENUCONTENTDARK_PLUS_0); + image->doPaintBg(false); + image->SetTransparent(CFrameBuffer::TM_BLACK); } image->setPicture(tmpname); image->setHeight(h_image, true); @@ -1185,9 +1187,9 @@ void CUpnpBrowserGui::paintDetails(UPnPEntry *entry, bool use_playing) text += "\n" + entry->album; ibox.setText(text, CTextBox::AUTO_WIDTH); ibox.paint0(); - if (image) - image->paint0(); } + if (image) + image->paint0(); timebox.paint0(); } }