mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
upnpbrowser.cpp: paint picture when reentry same folder
This commit is contained in:
@@ -1144,10 +1144,10 @@ 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() - OFFSET_INTER - infobox.getCornerRadius();
|
int h_image = infobox.getHeight() - OFFSET_INTER - infobox.getCornerRadius();
|
||||||
int y_image = infobox.getYPos() + infobox.getHeight()/2 - h_image/2;
|
int y_image = infobox.getYPos() + infobox.getHeight()/2 - h_image/2;
|
||||||
@@ -1160,7 +1160,6 @@ void CUpnpBrowserGui::paintItemInfo(UPnPEntry *entry)
|
|||||||
image->setHeight(h_image, true);
|
image->setHeight(h_image, true);
|
||||||
int x_image = infobox.getXPos() + infobox.getWidth() - image->getWidth() - OFFSET_INTER - infobox.getCornerRadius();
|
int x_image = infobox.getXPos() + infobox.getWidth() - image->getWidth() - OFFSET_INTER - infobox.getCornerRadius();
|
||||||
image->setXPos(x_image);
|
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