diff options
author | louis <louis.braun@gmx.de> | 2014-05-24 16:17:57 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2014-05-24 16:17:57 +0200 |
commit | dc67dd4d443273119e9dfdf637b93a3c3900b570 (patch) | |
tree | 309714086de76e5627c154dac55cc2174aca36f4 /detailview.c | |
parent | f92335221f7945309e14e1646ac6a4cd711b67cd (diff) | |
download | skin-nopacity-dc67dd4d443273119e9dfdf637b93a3c3900b570.tar.gz skin-nopacity-dc67dd4d443273119e9dfdf637b93a3c3900b570.tar.bz2 |
added dedicated background pixmap in detailview
Diffstat (limited to 'detailview.c')
-rw-r--r-- | detailview.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/detailview.c b/detailview.c index 5a7edc6..48cd465 100644 --- a/detailview.c +++ b/detailview.c @@ -17,6 +17,7 @@ cNopacityView::cNopacityView(cOsd *osd, cImageCache *imgCache) { pixmapHeader = NULL;
pixmapHeaderLogo = NULL;
pixmapContent = NULL;
+ pixmapContentBack = NULL;
pixmapTabs = NULL;
title = "";
subTitle = "";
@@ -51,6 +52,8 @@ cNopacityView::~cNopacityView(void) { osd->DestroyPixmap(pixmapHeaderLogo);
if (pixmapContent)
osd->DestroyPixmap(pixmapContent);
+ if (pixmapContentBack)
+ osd->DestroyPixmap(pixmapContentBack);
if (pixmapTabs)
osd->DestroyPixmap(pixmapTabs);
}
@@ -143,6 +146,10 @@ void cNopacityView::CreateContent(int fullHeight) { drawPortHeight = fullHeight;
scrollable = true;
}
+ if (!pixmapContentBack) {
+ pixmapContentBack = osd->CreatePixmap(3, cRect(x, y + headerHeight, width, contentHeight + tabHeight));
+ pixmapContentBack->Fill(Theme.Color(clrMenuDetailViewBack));
+ }
pixmapContent = osd->CreatePixmap(4, cRect(x, y + headerHeight, width, contentHeight), cRect(0, 0, width, drawPortHeight));
pixmapContent->Fill(clrTransparent);
}
|