summaryrefslogtreecommitdiff
path: root/detailview.c
diff options
context:
space:
mode:
Diffstat (limited to 'detailview.c')
-rw-r--r--detailview.c7
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);
}