diff options
author | louis <louis.braun@gmx.de> | 2013-03-09 16:42:48 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-03-09 16:42:48 +0100 |
commit | 3d4c1d84b7cd2ca23e3fda446a30b55a1d4878d9 (patch) | |
tree | cd8bba326fcdb4541f85e3be335b4671f21bed2a /menuitem.c | |
parent | c7785076bf49db3d0ab1ae63ccb19bd3f9fe43e3 (diff) | |
download | skin-nopacity-3d4c1d84b7cd2ca23e3fda446a30b55a1d4878d9.tar.gz skin-nopacity-3d4c1d84b7cd2ca23e3fda446a30b55a1d4878d9.tar.bz2 |
Restructured setup menu
Diffstat (limited to 'menuitem.c')
-rw-r--r-- | menuitem.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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)); |