summaryrefslogtreecommitdiff
path: root/menuitem.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-03-09 16:42:48 +0100
committerlouis <louis.braun@gmx.de>2013-03-09 16:42:48 +0100
commit3d4c1d84b7cd2ca23e3fda446a30b55a1d4878d9 (patch)
treecd8bba326fcdb4541f85e3be335b4671f21bed2a /menuitem.c
parentc7785076bf49db3d0ab1ae63ccb19bd3f9fe43e3 (diff)
downloadskin-nopacity-3d4c1d84b7cd2ca23e3fda446a30b55a1d4878d9.tar.gz
skin-nopacity-3d4c1d84b7cd2ca23e3fda446a30b55a1d4878d9.tar.bz2
Restructured setup menu
Diffstat (limited to 'menuitem.c')
-rw-r--r--menuitem.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/menuitem.c b/menuitem.c
index 7ccf1ac..73cd660 100644
--- a/menuitem.c
+++ b/menuitem.c
@@ -193,7 +193,8 @@ void cNopacityMenuItem::DrawRoundedCorners(tColor borderColor) {
}
// cNopacityMainMenuItem -------------
-cNopacityMainMenuItem::cNopacityMainMenuItem(cOsd *osd, const char *text, bool sel) : cNopacityMenuItem (osd, text, sel) {
+cNopacityMainMenuItem::cNopacityMainMenuItem(cOsd *osd, const char *text, bool sel, bool setup) : cNopacityMenuItem (osd, text, sel) {
+ this->isSetup = setup;
}
cNopacityMainMenuItem::~cNopacityMainMenuItem(void) {
@@ -326,7 +327,11 @@ void cNopacityMainMenuItem::SetTextShort(void) {
void cNopacityMainMenuItem::Render() {
pixmap->Fill(Theme.Color(clrMenuBorder));
- int handleBgrd = (current)?handleBackgrounds[3]:handleBackgrounds[2];
+ int handleBgrd;
+ if (!isSetup)
+ handleBgrd = (current)?handleBackgrounds[3]:handleBackgrounds[2];
+ else
+ handleBgrd = (current)?handleBackgrounds[13]:handleBackgrounds[12];
pixmap->DrawImage(cPoint(1, 1), handleBgrd);
if (config.roundedCorners)
DrawRoundedCorners(Theme.Color(clrMenuBorder));