mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
upnpbrowser.cpp: paint picture when reentry same folder
Origin commit data
------------------
Branch: ni/coolstream
Commit: abf2fe07d8
Author: GetAway <get-away@t-online.de>
Date: 2018-09-26 (Wed, 26 Sep 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1149,23 +1149,22 @@ void CUpnpBrowserGui::paintItemInfo(UPnPEntry *entry)
|
|||||||
if (!entry->isdir && preferred != -1)
|
if (!entry->isdir && preferred != -1)
|
||||||
tmp += "URL: " + entry->resources[preferred].url;
|
tmp += "URL: " + entry->resources[preferred].url;
|
||||||
|
|
||||||
static std::string lastname = "", tmpname = "";
|
std::string tmpname = "";
|
||||||
if(!entry->albumArtURI.empty()){
|
if(!entry->albumArtURI.empty())
|
||||||
if(lastname != entry->albumArtURI){
|
{
|
||||||
tmpname = lastname = entry->albumArtURI.c_str();
|
tmpname = entry->albumArtURI.c_str();
|
||||||
tmpname = g_PicViewer->DownloadImage(tmpname);
|
tmpname = g_PicViewer->DownloadImage(tmpname);
|
||||||
int h_image = infobox.getHeight() - 2*OFFSET_INNER_SMALL - infobox.getCornerRadius();
|
int h_image = infobox.getHeight() - 2*OFFSET_INNER_SMALL - infobox.getCornerRadius();
|
||||||
int y_image = infobox.getYPos() + infobox.getHeight()/2 - h_image/2;
|
int y_image = infobox.getYPos() + infobox.getHeight()/2 - h_image/2;
|
||||||
if (!image){
|
if (!image){
|
||||||
image = new CComponentsPicture(0, y_image, tmpname, NULL, CC_SHADOW_OFF, COL_MENUCONTENTDARK_PLUS_0);
|
image = new CComponentsPicture(0, y_image, tmpname, NULL, CC_SHADOW_OFF, COL_MENUCONTENTDARK_PLUS_0);
|
||||||
image->doPaintBg(false);
|
image->doPaintBg(false);
|
||||||
image->SetTransparent(CFrameBuffer::TM_BLACK);
|
image->SetTransparent(CFrameBuffer::TM_BLACK);
|
||||||
}
|
|
||||||
image->setPicture(tmpname);
|
|
||||||
image->setHeight(h_image, true);
|
|
||||||
int x_image = infobox.getXPos() + infobox.getWidth() - infobox.getCornerRadius() - OFFSET_INNER_MID - image->getWidth();
|
|
||||||
image->setXPos(x_image);
|
|
||||||
}
|
}
|
||||||
|
image->setPicture(tmpname);
|
||||||
|
image->setHeight(h_image, true);
|
||||||
|
int x_image = infobox.getXPos() + infobox.getWidth() - image->getWidth() - OFFSET_INTER - infobox.getCornerRadius();
|
||||||
|
image->setXPos(x_image);
|
||||||
}else{
|
}else{
|
||||||
if (image){
|
if (image){
|
||||||
delete image; image = NULL;
|
delete image; image = NULL;
|
||||||
|
Reference in New Issue
Block a user