summaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-04-10 16:48:02 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-04-10 16:59:22 +0200
commit80acee49e1540ca3ec5ff468559f50ade9e14984 (patch)
treeb95cb3d1f435c5ef510e64267713c4a3ef8af805 /view.c
parent6095fb4dbc9c25ff9613d9b8c17303a678a6ba37 (diff)
downloadvdr-plugin-tvguide-80acee49e1540ca3ec5ff468559f50ade9e14984.tar.gz
vdr-plugin-tvguide-80acee49e1540ca3ec5ff468559f50ade9e14984.tar.bz2
Changes for Rec Icon in DrawHeader
Diffstat (limited to 'view.c')
-rw-r--r--view.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/view.c b/view.c
index a2074b2..d0dd604 100644
--- a/view.c
+++ b/view.c
@@ -16,7 +16,6 @@ cView::cView(void) {
pixmapBackground = NULL;
pixmapHeader = NULL;
pixmapHeaderLogo = NULL;
- pixmapHeaderIcon = NULL;
pixmapContent = NULL;
pixmapTabs = NULL;
pixmapScrollbar = NULL;
@@ -47,8 +46,6 @@ cView::~cView(void) {
delete pixmapHeader;
if (pixmapHeaderLogo)
osdManager.releasePixmap(pixmapHeaderLogo);
- if (pixmapHeaderIcon)
- osdManager.releasePixmap(pixmapHeaderIcon);
if (pixmapContent)
osdManager.releasePixmap(pixmapContent);
if (pixmapTabs)
@@ -157,10 +154,8 @@ void cView::DrawHeader(void) {
int height = fontManager.FontDetailHeader->Height() + 10;
int posX = headerWidth - widthIcon - 25;
int posY = ySubtitle - 5;
- if (!pixmapHeaderIcon)
- pixmapHeaderIcon = osdManager.requestPixmap(7, cRect(posX, posY, widthIcon, height));
- pixmapHeaderIcon->DrawRectangle(cRect(0, 0, widthIcon, height), iconColor);
- pixmapHeaderIcon->DrawText(cPoint(5, 5), *recIconText, theme.Color(clrFont), iconColor, fontManager.FontDetailHeader);
+ pixmapHeader->DrawRectangle( cRect(posX, posY, widthIcon, height), iconColor);
+ pixmapHeader->DrawText(cPoint(posX + 5, posY + 5), *recIconText, theme.Color(clrFont), iconColor, fontManager.FontDetailHeader);
}
}