diff options
author | louis <louis.braun@gmx.de> | 2013-09-15 11:52:50 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-09-15 11:52:50 +0200 |
commit | ea1c83fe83b52b60b8c312d9da8c90e6d640c483 (patch) | |
tree | 88b4427b8f76d23e50773d916226db0d52447e11 /displaymenuview.c | |
parent | 5f7c1322d1b379b3434ade772081e4a86849c96c (diff) | |
download | skin-nopacity-ea1c83fe83b52b60b8c312d9da8c90e6d640c483.tar.gz skin-nopacity-ea1c83fe83b52b60b8c312d9da8c90e6d640c483.tar.bz2 |
new fullscreen display mode in narrow schedules and recordings view
Diffstat (limited to 'displaymenuview.c')
-rw-r--r-- | displaymenuview.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/displaymenuview.c b/displaymenuview.c index ab4c9b6..55399f3 100644 --- a/displaymenuview.c +++ b/displaymenuview.c @@ -44,6 +44,7 @@ cNopacityDisplayMenuView::~cNopacityDisplayMenuView(void) { delete fontButtons; delete fontMessage; delete fontEPGInfoWindow; + delete fontEPGInfoWindowLarge; delete fontRssFeed; } @@ -102,13 +103,23 @@ void cNopacityDisplayMenuView::SetDescriptionTextWindowSize(void) { int xSchedules = (config.menuAdjustLeft) ? (2 * spaceMenu + contentWidthSchedules + widthScrollbar) : (spaceMenu); int xRecordings = (config.menuAdjustLeft) ? (2 * spaceMenu + contentWidthRecordings + widthScrollbar) : (spaceMenu); int xChannels = (config.menuAdjustLeft) ? (2 * spaceMenu + contentWidthChannels + widthScrollbar) : (spaceMenu); - int height = config.menuHeightInfoWindow * (contentHeight - 2*spaceMenu) / 100; + + int heightFull = contentHeight - 2*spaceMenu; + int height = config.menuHeightInfoWindow * heightFull / 100; int y = headerHeight + (contentHeight - height - spaceMenu); + int yFullScreen = headerHeight + spaceMenu; + int widthSchedules = (config.menuAdjustLeft) ? (osdWidth - xSchedules - spaceMenu) : (osdWidth - contentWidthSchedules - widthScrollbar - 2 * spaceMenu); int widthRecordings = (config.menuAdjustLeft) ? (osdWidth - xRecordings - spaceMenu) : (osdWidth - contentWidthRecordings - widthScrollbar - 2 * spaceMenu); int widthChannels = (config.menuAdjustLeft) ? (osdWidth - xChannels - spaceMenu) : (osdWidth - contentWidthChannels - widthScrollbar - 2 * spaceMenu); - textWindowSizeSchedules = cRect(xSchedules,y,widthSchedules,height); - textWindowSizeRecordings = cRect(xRecordings,y,widthRecordings,height); + if (config.menuSchedulesWindowMode == 0) + textWindowSizeSchedules = cRect(xSchedules,y,widthSchedules,height); + else + textWindowSizeSchedules = cRect(xSchedules,yFullScreen,widthSchedules,heightFull); + if (config.menuRecordingsWindowMode == 0) + textWindowSizeRecordings = cRect(xRecordings,y,widthRecordings,height); + else + textWindowSizeRecordings = cRect(xRecordings,yFullScreen,widthRecordings,heightFull); textWindowSizeChannels = cRect(xChannels,y,widthChannels,height); } @@ -247,6 +258,7 @@ void cNopacityDisplayMenuView::CreateFonts(void) { fontButtons = cFont::CreateFont(config.fontName, buttonHeight*0.8 + config.fontButtons); fontMessage = cFont::CreateFont(config.fontName, messageHeight / 3 + config.fontMessageMenu); fontEPGInfoWindow = cFont::CreateFont(config.fontName, contentHeight / 30 + config.fontEPGInfoWindow); + fontEPGInfoWindowLarge = cFont::CreateFont(config.fontName, contentHeight / 20 + config.fontEPGInfoWindowLarge); fontRssFeed = cFont::CreateFont(config.fontName, (rssFeedHeight / 2) + 3 + config.fontRssFeed); } @@ -291,6 +303,10 @@ cFont *cNopacityDisplayMenuView::GetEPGWindowFont(void) { return fontEPGInfoWindow; } +cFont *cNopacityDisplayMenuView::GetEPGWindowFontLarge(void) { + return fontEPGInfoWindowLarge; +} + void cNopacityDisplayMenuView::GetMenuItemSize(eMenuCategory menuCat, cPoint *itemSize) { int itemWidth = 0; int itemHeight = 0; |