mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Changes for Rec Icon in DrawHeader
This commit is contained in:
parent
6095fb4dbc
commit
80acee49e1
9
view.c
9
view.c
@ -16,7 +16,6 @@ cView::cView(void) {
|
|||||||
pixmapBackground = NULL;
|
pixmapBackground = NULL;
|
||||||
pixmapHeader = NULL;
|
pixmapHeader = NULL;
|
||||||
pixmapHeaderLogo = NULL;
|
pixmapHeaderLogo = NULL;
|
||||||
pixmapHeaderIcon = NULL;
|
|
||||||
pixmapContent = NULL;
|
pixmapContent = NULL;
|
||||||
pixmapTabs = NULL;
|
pixmapTabs = NULL;
|
||||||
pixmapScrollbar = NULL;
|
pixmapScrollbar = NULL;
|
||||||
@ -47,8 +46,6 @@ cView::~cView(void) {
|
|||||||
delete pixmapHeader;
|
delete pixmapHeader;
|
||||||
if (pixmapHeaderLogo)
|
if (pixmapHeaderLogo)
|
||||||
osdManager.releasePixmap(pixmapHeaderLogo);
|
osdManager.releasePixmap(pixmapHeaderLogo);
|
||||||
if (pixmapHeaderIcon)
|
|
||||||
osdManager.releasePixmap(pixmapHeaderIcon);
|
|
||||||
if (pixmapContent)
|
if (pixmapContent)
|
||||||
osdManager.releasePixmap(pixmapContent);
|
osdManager.releasePixmap(pixmapContent);
|
||||||
if (pixmapTabs)
|
if (pixmapTabs)
|
||||||
@ -157,10 +154,8 @@ void cView::DrawHeader(void) {
|
|||||||
int height = fontManager.FontDetailHeader->Height() + 10;
|
int height = fontManager.FontDetailHeader->Height() + 10;
|
||||||
int posX = headerWidth - widthIcon - 25;
|
int posX = headerWidth - widthIcon - 25;
|
||||||
int posY = ySubtitle - 5;
|
int posY = ySubtitle - 5;
|
||||||
if (!pixmapHeaderIcon)
|
pixmapHeader->DrawRectangle( cRect(posX, posY, widthIcon, height), iconColor);
|
||||||
pixmapHeaderIcon = osdManager.requestPixmap(7, cRect(posX, posY, widthIcon, height));
|
pixmapHeader->DrawText(cPoint(posX + 5, posY + 5), *recIconText, theme.Color(clrFont), iconColor, fontManager.FontDetailHeader);
|
||||||
pixmapHeaderIcon->DrawRectangle(cRect(0, 0, widthIcon, height), iconColor);
|
|
||||||
pixmapHeaderIcon->DrawText(cPoint(5, 5), *recIconText, theme.Color(clrFont), iconColor, fontManager.FontDetailHeader);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
view.h
1
view.h
@ -35,7 +35,6 @@ protected:
|
|||||||
cPixmap *pixmapBackground;
|
cPixmap *pixmapBackground;
|
||||||
cStyledPixmap *pixmapHeader;
|
cStyledPixmap *pixmapHeader;
|
||||||
cPixmap *pixmapHeaderLogo;
|
cPixmap *pixmapHeaderLogo;
|
||||||
cPixmap *pixmapHeaderIcon;
|
|
||||||
cPixmap *pixmapContent;
|
cPixmap *pixmapContent;
|
||||||
cPixmap *pixmapScrollbar;
|
cPixmap *pixmapScrollbar;
|
||||||
cPixmap *pixmapScrollbarBack;
|
cPixmap *pixmapScrollbarBack;
|
||||||
|
Loading…
Reference in New Issue
Block a user