summaryrefslogtreecommitdiff
path: root/recmenu.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-12-21 11:25:03 +0100
committerlouis <louis.braun@gmx.de>2013-12-21 11:25:03 +0100
commit4c61104675de5f1fac7e7fa95fb5743e18defc02 (patch)
tree7a3ee90e3b28246e8d4595954d4559445fb7ebe7 /recmenu.c
parent8aa2c81d3165a0517115337362f1203ea4bdd899 (diff)
downloadvdr-plugin-tvguide-4c61104675de5f1fac7e7fa95fb5743e18defc02.tar.gz
vdr-plugin-tvguide-4c61104675de5f1fac7e7fa95fb5743e18defc02.tar.bz2
Version 1.2.0pre
Diffstat (limited to 'recmenu.c')
-rw-r--r--recmenu.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/recmenu.c b/recmenu.c
index 66a5a84..985406f 100644
--- a/recmenu.c
+++ b/recmenu.c
@@ -3,7 +3,7 @@
// --- cRecMenu -------------------------------------------------------------
cRecMenu::cRecMenu(void) {
- border = 10;
+ border = geoManager.borderRecMenus;
height = 2*border;
headerHeight = 0;
footerHeight = 0;
@@ -33,13 +33,13 @@ cRecMenu::~cRecMenu(void) {
}
void cRecMenu::SetWidthPercent(int percentOSDWidth) {
- width = tvguideConfig.osdWidth * percentOSDWidth / 100;
- x = (tvguideConfig.osdWidth - width) / 2;
+ width = geoManager.osdWidth * percentOSDWidth / 100;
+ x = (geoManager.osdWidth - width) / 2;
}
void cRecMenu::SetWidthPixel(int pixel) {
width = pixel;
- x = (tvguideConfig.osdWidth - width) / 2;
+ x = (geoManager.osdWidth - width) / 2;
}
int cRecMenu::CalculateOptimalWidth(void) {
@@ -71,7 +71,7 @@ void cRecMenu::AddMenuItemScroll(cRecMenuItem *item) {
bool cRecMenu::CheckHeight(void) {
int nextHeight = headerHeight + footerHeight + scrollHeight + 2*border + 150;
- if (nextHeight > tvguideConfig.osdHeight) {
+ if (nextHeight > geoManager.osdHeight) {
scrollable = true;
return false;
}
@@ -87,7 +87,7 @@ void cRecMenu::CalculateHeight(void) {
}
if (footer)
height += footerHeight;
- y = (tvguideConfig.osdHeight - height) / 2;
+ y = (geoManager.osdHeight - height) / 2;
if (scrollable) {
width += scrollbarWidth + border;
@@ -355,8 +355,12 @@ void cRecMenu::Arrange(bool scroll) {
}
void cRecMenu::Display(bool scroll) {
- pixmap->Fill(theme.Color(clrBackground));
- drawBorder();
+ if (tvguideConfig.style == eStyleGraphical) {
+ drawBackgroundGraphical(bgRecMenuBack);
+ } else {
+ pixmap->Fill(theme.Color(clrBackground));
+ drawBorder();
+ }
if (header && !scroll) {
header->setBackground();
header->Draw();
@@ -497,7 +501,7 @@ eRecMenuState cRecMenu::ProcessKey(eKeys Key) {
cImage *cRecMenu::createScrollbar(int width, int height, tColor clrBgr, tColor clrBlend) {
cImage *image = new cImage(cSize(width, height));
image->Fill(clrBgr);
- if (tvguideConfig.useBlending) {
+ if (tvguideConfig.style != eStyleFlat) {
int numSteps = 64;
int alphaStep = 0x03;
if (height < 30)