summaryrefslogtreecommitdiff
path: root/displaymenuview.c
diff options
context:
space:
mode:
Diffstat (limited to 'displaymenuview.c')
-rw-r--r--displaymenuview.c24
1 files changed, 20 insertions, 4 deletions
diff --git a/displaymenuview.c b/displaymenuview.c
index 405f0b1..deba02e 100644
--- a/displaymenuview.c
+++ b/displaymenuview.c
@@ -105,16 +105,32 @@ cRect *cNopacityDisplayMenuView::GetDescriptionTextWindowSize(eMenuCategory menu
int cNopacityDisplayMenuView::GetContentWidth(eMenuCategory menuCat) {
switch (menuCat) {
case mcMain:
+ if (config.narrowMainMenu)
+ return contentWidthMain;
+ else
+ return contentWidthFull;
case mcSetup:
- return contentWidthMain;
+ if (config.narrowSetupMenu)
+ return contentWidthMain;
+ else
+ return contentWidthFull;
case mcSchedule:
case mcScheduleNow:
case mcScheduleNext:
- return contentWidthSchedules;
+ if (config.narrowScheduleMenu)
+ return contentWidthSchedules;
+ else
+ return contentWidthFull;
case mcChannel:
- return contentWidthChannels;
+ if (config.narrowChannelMenu)
+ return contentWidthChannels;
+ else
+ return contentWidthFull;
case mcRecording:
- return contentWidthRecordings;
+ if (config.narrowRecordingMenu)
+ return contentWidthRecordings;
+ else
+ return contentWidthFull;
default:
return contentWidthFull;
}