summaryrefslogtreecommitdiff
path: root/displaymenu.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-05-08 18:31:01 +0200
committerlouis <louis.braun@gmx.de>2013-05-08 18:31:01 +0200
commitec606cea46a25009182b03eb9bbd53bea362bdbd (patch)
tree4bf273553e9bb826dd57c566e97cabc47ec2f008 /displaymenu.c
parentcdcbf602021a64393669a28fbd7de1c7ddd23fa1 (diff)
downloadskin-nopacity-ec606cea46a25009182b03eb9bbd53bea362bdbd.tar.gz
skin-nopacity-ec606cea46a25009182b03eb9bbd53bea362bdbd.tar.bz2
Introduced plain style without any blending effects
Diffstat (limited to 'displaymenu.c')
-rw-r--r--displaymenu.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/displaymenu.c b/displaymenu.c
index e99da16..d62416e 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -59,11 +59,12 @@ cNopacityDisplayMenu::~cNopacityDisplayMenu() {
delete detailView;
}
timers.Clear();
- for (int i=0; i<14; i++)
- cOsdProvider::DropImage(handleBackgrounds[i]);
- for (int i=0; i<4; i++)
- cOsdProvider::DropImage(handleButtons[i]);
-
+ if (config.doBlending) {
+ for (int i=0; i<14; i++)
+ cOsdProvider::DropImage(handleBackgrounds[i]);
+ for (int i=0; i<4; i++)
+ cOsdProvider::DropImage(handleButtons[i]);
+ }
delete osd;
cDevice::PrimaryDevice()->ScaleVideo(cRect::Null);
menuActive = false;
@@ -362,22 +363,22 @@ void cNopacityDisplayMenu::SetButtonPositions(void) {
void cNopacityDisplayMenu::SetButtons(const char *Red, const char *Green, const char *Yellow, const char *Blue) {
if (Red) {
- menuView->DrawButton(Red, handleButtons[0], Theme.Color(clrButtonRedBorder), positionButtons[0]);
+ menuView->DrawButton(Red, handleButtons[0], Theme.Color(clrButtonRed), Theme.Color(clrButtonRedBorder), positionButtons[0]);
} else
menuView->ClearButton(positionButtons[0]);
if (Green) {
- menuView->DrawButton(Green, handleButtons[1], Theme.Color(clrButtonGreenBorder), positionButtons[1]);
+ menuView->DrawButton(Green, handleButtons[1],Theme.Color(clrButtonGreen), Theme.Color(clrButtonGreenBorder), positionButtons[1]);
} else
menuView->ClearButton(positionButtons[1]);
if (Yellow) {
- menuView->DrawButton(Yellow, handleButtons[2], Theme.Color(clrButtonYellowBorder), positionButtons[2]);
+ menuView->DrawButton(Yellow, handleButtons[2], Theme.Color(clrButtonYellow), Theme.Color(clrButtonYellowBorder), positionButtons[2]);
} else
menuView->ClearButton(positionButtons[2]);
if (Blue) {
- menuView->DrawButton(Blue, handleButtons[3], Theme.Color(clrButtonBlueBorder), positionButtons[3]);
+ menuView->DrawButton(Blue, handleButtons[3], Theme.Color(clrButtonBlue), Theme.Color(clrButtonBlueBorder), positionButtons[3]);
} else
menuView->ClearButton(positionButtons[3]);
}