Ticket #3068: mythvideopatch.diff
File mythvideopatch.diff, 1.6 KB (added by , 17 years ago) |
---|
-
mythvideo/mythvideo/videogallery.h
56 56 void positionIcon(); 57 57 58 58 void computeLastRowCol(int list_count); 59 void drawBackground(); 59 60 60 61 private: 61 62 bool subtitleOn; … … 69 70 QPixmap backSelPix; 70 71 QPixmap folderRegPix; 71 72 QPixmap folderSelPix; 72 73 QPixmap myBackground; 73 74 int currRow; 74 75 int currCol; 75 76 int lastRow; -
mythvideo/mythvideo/videogallery.cpp
41 41 keepAspectRatio = gContext->GetNumSetting("VideoGalleryAspectRatio", 1); 42 42 43 43 loadWindow(xmldata); 44 45 drawBackground(); // draw the background 46 44 47 LoadIconWindow(); // load icon settings 45 48 46 49 fetchVideos(); … … 266 269 267 270 void VideoGallery::updateView(QPainter *p) 268 271 { 272 269 273 // 270 274 // Draw all video icons 271 275 // … … 877 881 else if (container_name == "arrows") 878 882 arrowsRect = area; 879 883 } 884 885 void VideoGallery::drawBackground(void) 886 { 887 QPixmap bground(size()); 888 bground.fill(this, 0, 0); 889 890 QPainter tmp(&bground); 891 892 LayerSet *container = theme->GetSet("background"); 893 if (container) 894 container->Draw(&tmp, 0, 0); 895 896 tmp.end(); 897 myBackground = bground; 898 899 setPaletteBackgroundPixmap(myBackground); 900 }