diff options
author | louis <louis.braun@gmx.de> | 2013-11-01 13:32:15 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-01 13:32:15 +0100 |
commit | 8d889c5ee416bdd82c7316618dda67abcab0edcc (patch) | |
tree | 62576cdf4df766619bb975f5878a24f7ddb6d582 /displaymenu.c | |
parent | d7cbf12e4dc0836eaa1f04fd9a50c74cb790938d (diff) | |
download | skin-nopacity-8d889c5ee416bdd82c7316618dda67abcab0edcc.tar.gz skin-nopacity-8d889c5ee416bdd82c7316618dda67abcab0edcc.tar.bz2 |
cleaned up pixmaps in menuitems, avoided font pixelation in default menu items
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/displaymenu.c b/displaymenu.c index 5838264..29630a5 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -387,11 +387,11 @@ bool cNopacityDisplayMenu::SetItemEvent(const cEvent *Event, int Index, bool Cur item->SetCurrent(Current); item->CreateText(); int textWidth = item->CheckScrollable((Channel)?true:false); - item->CreatePixmap(); + item->CreatePixmapBackground(); if (config.GetValue("displayType") == dtGraphical) { item->CreatePixmapForeground(); } - item->CreatePixmapIcon(); + item->CreatePixmapStatic(); item->CreatePixmapTextScroller(textWidth); menuItems.Add(item); item->Render(); @@ -425,11 +425,11 @@ bool cNopacityDisplayMenu::SetItemTimer(const cTimer *Timer, int Index, bool Cur item->SetCurrent(Current); item->CreateText(); int textWidth = item->CheckScrollable(true); - item->CreatePixmap(); + item->CreatePixmapBackground(); if (config.GetValue("displayType") == dtGraphical) { item->CreatePixmapForeground(); } - item->CreatePixmapIcon(); + item->CreatePixmapStatic(); item->CreatePixmapTextScroller(textWidth); menuItems.Add(item); item->Render(); @@ -465,8 +465,8 @@ bool cNopacityDisplayMenu::SetItemChannel(const cChannel *Channel, int Index, bo item->SetCurrent(Current); item->CreateText(); int textWidth = item->CheckScrollable(true); - item->CreatePixmap(); - item->CreatePixmapIcon(); + item->CreatePixmapBackground(); + item->CreatePixmapStatic(); item->CreatePixmapTextScroller(textWidth); if (config.GetValue("displayType") == dtGraphical) { item->CreatePixmapForeground(); @@ -511,8 +511,8 @@ bool cNopacityDisplayMenu::SetItemRecording(const cRecording *Recording, int Ind item->CreateText(); item->SetPoster(); int textWidth = item->CheckScrollable(false); - item->CreatePixmap(); - item->CreatePixmapIcon(); + item->CreatePixmapBackground(); + item->CreatePixmapStatic(); item->CreatePixmapTextScroller(textWidth); if (config.GetValue("displayType") == dtGraphical) { item->CreatePixmapForeground(); @@ -570,13 +570,11 @@ void cNopacityDisplayMenu::SetItem(const char *Text, int Index, bool Current, bo item->SetTabs(strItems, tabItems, MaxTabs); item->CreateText(); int textWidth = item->CheckScrollable(hasIcons); - item->CreatePixmap(); + item->CreatePixmapBackground(); if (config.GetValue("displayType") == dtGraphical && MainOrSetup) { item->CreatePixmapForeground(); } - if (hasIcons) { - item->CreatePixmapIcon(); - } + item->CreatePixmapStatic(); if (textWidth > 0) item->CreatePixmapTextScroller(textWidth); menuItems.Add(item); |