CUpnpBrowserGui: fix paint image while scroll, use transparent background

Origin commit data
------------------
Commit: 145209aaa1
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-03-04 (Fri, 04 Mar 2016)
This commit is contained in:
2016-03-04 23:26:58 +01:00
parent cc71c0c923
commit c9af09e064

View File

@@ -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();
}
timebox.paint0();
}
}