rendered paste bodyIndex: mythvideo/mythvideo/videogallery.h
===================================================================
--- mythvideo/mythvideo/videogallery.h (revision 12758)
+++ mythvideo/mythvideo/videogallery.h (working copy)
@@ -56,6 +56,7 @@
void positionIcon();
void computeLastRowCol(int list_count);
+ void drawBackground();
private:
bool subtitleOn;
@@ -69,7 +70,7 @@
QPixmap backSelPix;
QPixmap folderRegPix;
QPixmap folderSelPix;
-
+ QPixmap myBackground;
int currRow;
int currCol;
int lastRow;
Index: mythvideo/mythvideo/videogallery.cpp
===================================================================
--- mythvideo/mythvideo/videogallery.cpp (revision 12758)
+++ mythvideo/mythvideo/videogallery.cpp (working copy)
@@ -41,6 +41,9 @@
keepAspectRatio = gContext->GetNumSetting("VideoGalleryAspectRatio", 1);
loadWindow(xmldata);
+
+ drawBackground(); // draw the background
+
LoadIconWindow(); // load icon settings
fetchVideos();
@@ -266,6 +269,7 @@
void VideoGallery::updateView(QPainter *p)
{
+
//
// Draw all video icons
//
@@ -877,3 +881,20 @@
else if (container_name == "arrows")
arrowsRect = area;
}
+
+void VideoGallery::drawBackground(void)
+{
+ QPixmap bground(size());
+ bground.fill(this, 0, 0);
+
+ QPainter tmp(&bground);
+
+ LayerSet *container = theme->GetSet("background");
+ if (container)
+ container->Draw(&tmp, 0, 0);
+
+ tmp.end();
+ myBackground = bground;
+
+ setPaletteBackgroundPixmap(myBackground);
+}