summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--detailview.c7
-rw-r--r--detailview.h1
3 files changed, 9 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index 90b5f7d..c4dd5dc 100644
--- a/HISTORY
+++ b/HISTORY
@@ -430,3 +430,4 @@ Version 1.1.2
Version 1.1.3
- Vertical channel logo alignment configurable in displaychannel
+- added dedicated background pixmap in detailview
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);
}
diff --git a/detailview.h b/detailview.h
index f3b03ec..0a908bd 100644
--- a/detailview.h
+++ b/detailview.h
@@ -35,6 +35,7 @@ protected:
cPixmap *pixmapHeader;
cPixmap *pixmapHeaderLogo;
cPixmap *pixmapContent;
+ cPixmap *pixmapContentBack;
cPixmap *pixmapScrollbar;
cPixmap *pixmapScrollbarBack;
cPixmap *pixmapTabs;