From dc67dd4d443273119e9dfdf637b93a3c3900b570 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 24 May 2014 16:17:57 +0200 Subject: added dedicated background pixmap in detailview --- detailview.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'detailview.c') 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); } -- cgit v1.2.3