summaryrefslogtreecommitdiff
path: root/displaymenu.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-01-30 17:43:58 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-03-11 14:53:41 +0100
commitc54f7ba74ff8f1a363142c68bf215ee42c965ac9 (patch)
treee3d6327d8aec59b331a4a82d9f89bfc0ea025dad /displaymenu.c
parent2816e3ab2b384abc7d24fbead0d4126d8818c2d1 (diff)
downloadskin-nopacity-c54f7ba74ff8f1a363142c68bf215ee42c965ac9.tar.gz
skin-nopacity-c54f7ba74ff8f1a363142c68bf215ee42c965ac9.tar.bz2
Elimintae cNopacityMenuItem::SetFont*
Fonts assigned in constructor of cNopacityMainMenuItem*. Therefore SetFont(), SetFontSmall(), SetFontEPGWindow() and SetFontEPGWindowLarge() can be deleted.
Diffstat (limited to 'displaymenu.c')
-rw-r--r--displaymenu.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/displaymenu.c b/displaymenu.c
index 86045f6..6207a9e 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -367,10 +367,6 @@ bool cNopacityDisplayMenu::SetItemEvent(const cEvent *Event, int Index, bool Cur
cPoint itemSize;
menuItems[Index].reset(item);
menuView->GetMenuItemSize(MenuCategory(), &itemSize);
- item->SetFont(fontManager->menuItemSchedule);
- item->SetFontSmall(fontManager->menuItemScheduleSmall);
- item->SetFontEPGWindow(fontManager->menuEPGInfoWindow);
- item->SetFontEPGWindowLarge(fontManager->menuEPGInfoWindowLarge);
int spaceTop = menuView->GetMenuTop(currentNumItems, itemSize.Y());
item->SetGeometry(Index, spaceTop, menuView->GetMenuItemLeft(itemSize.X()), itemSize.X(), itemSize.Y(), geoManager->menuSpace);
item->SetTextWindow(menuView->GetDescriptionTextWindowSize(mcSchedule));
@@ -409,10 +405,6 @@ bool cNopacityDisplayMenu::SetItemTimer(const cTimer *Timer, int Index, bool Cur
cPoint itemSize;
menuItems[Index].reset(item);
menuView->GetMenuItemSize(MenuCategory(), &itemSize);
- item->SetFont(fontManager->menuItemTimers);
- item->SetFontSmall(fontManager->menuItemTimersSmall);
- item->SetFontEPGWindow(fontManager->menuEPGInfoWindow);
- item->SetFontEPGWindowLarge(fontManager->menuEPGInfoWindowLarge);
int spaceTop = menuView->GetMenuTop(currentNumItems, itemSize.Y());
item->SetGeometry(Index, spaceTop, menuView->GetMenuItemLeft(itemSize.X()), itemSize.X(), itemSize.Y(), geoManager->menuSpace);
item->SetTextWindow(menuView->GetDescriptionTextWindowSize(mcTimer));
@@ -451,9 +443,6 @@ bool cNopacityDisplayMenu::SetItemChannel(const cChannel *Channel, int Index, bo
cPoint itemSize;
menuItems[Index].reset(item);
menuView->GetMenuItemSize(MenuCategory(), &itemSize);
- item->SetFont(fontManager->menuItemChannel);
- item->SetFontSmall(fontManager->menuItemChannelSmall);
- item->SetFontEPGWindow(fontManager->menuEPGInfoWindow);
int spaceTop = menuView->GetMenuTop(currentNumItems, itemSize.Y());
item->SetGeometry(Index, spaceTop, menuView->GetMenuItemLeft(itemSize.X()), itemSize.X(), itemSize.Y(), geoManager->menuSpace);
item->SetTextWindow(menuView->GetDescriptionTextWindowSize(mcChannel));
@@ -496,10 +485,6 @@ bool cNopacityDisplayMenu::SetItemRecording(const cRecording *Recording, int Ind
cPoint itemSize;
menuItems[Index].reset(item);
menuView->GetMenuItemSize(MenuCategory(), &itemSize);
- item->SetFont(fontManager->menuItemRecordings);
- item->SetFontSmall(fontManager->menuItemRecordingsSmall);
- item->SetFontEPGWindow(fontManager->menuEPGInfoWindow);
- item->SetFontEPGWindowLarge(fontManager->menuEPGInfoWindowLarge);
int spaceTop = menuView->GetMenuTop(currentNumItems, itemSize.Y());
item->SetGeometry(Index, spaceTop, menuView->GetMenuItemLeft(itemSize.X()), itemSize.X(), itemSize.Y(), geoManager->menuSpace);
item->SetTextWindow(menuView->GetDescriptionTextWindowSize(mcRecording));
@@ -553,14 +538,12 @@ void cNopacityDisplayMenu::SetItem(const char *Text, int Index, bool Current, bo
item = new cNopacityMainMenuItem(osd, Text, Selectable, isSetup);
menuItems[Index].reset(item);
menuView->GetMenuItemSize(MenuCategory(), &itemSize);
- item->SetFont(fontManager->menuItemLarge);
if (config.GetValue("useMenuIcons"))
hasIcons = true;
} else {
item = new cNopacityDefaultMenuItem(osd, Text, Selectable);
menuItems[Index].reset(item);
menuView->GetMenuItemSize(mcUnknown, &itemSize);
- item->SetFont(fontManager->menuItemDefault);
}
int spaceTop = menuView->GetMenuTop(currentNumItems, itemSize.Y());
item->SetGeometry(Index, spaceTop, menuView->GetMenuItemLeft(itemSize.X()), itemSize.X(), itemSize.Y(), geoManager->menuSpace);