diff options
author | louis <louis.braun@gmx.de> | 2013-11-02 18:01:44 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-02 18:01:44 +0100 |
commit | dbad495f79e0b2181317e8f2eef3298893221787 (patch) | |
tree | 2a8021956e3fdfc057d2504f6630e38a81f629fb /geometrymanager.c | |
parent | 13283424f777bde59db85734ea697bda8a2b4a12 (diff) | |
download | skin-nopacity-dbad495f79e0b2181317e8f2eef3298893221787.tar.gz skin-nopacity-dbad495f79e0b2181317e8f2eef3298893221787.tar.bz2 |
changed way of calculating number of menu items in narrow menus
Diffstat (limited to 'geometrymanager.c')
-rw-r--r-- | geometrymanager.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/geometrymanager.c b/geometrymanager.c index 17e55f1..20009b7 100644 --- a/geometrymanager.c +++ b/geometrymanager.c @@ -69,12 +69,20 @@ void cGeometryManager::SetDisplayMenuSizes() { menuItemWidthRecording = menuContentWidthRecordings - 4 * config.GetValue("spaceMenu"); menuItemWidthSetup = menuContentWidthSetup - 4 * config.GetValue("spaceMenu"); menuItemWidthTracks = osdWidth * config.GetValue("tracksWidth") / 100 - 4; - menuItemHeightMain = config.GetValue("iconHeight") + 2; - menuItemHeightSchedule = config.GetValue("menuItemLogoHeight") + 2; + menuItemHeightMain = menuContentHeight / config.GetValue("numMainMenuItems") - config.GetValue("spaceMenu"); + menuItemHeightSchedule = menuContentHeight / config.GetValue("numSchedulesMenuItems") - config.GetValue("spaceMenu");; menuItemHeightDefault = menuContentHeight / config.GetValue("numDefaultMenuItems") - config.GetValue("spaceMenu"); - menuItemHeightRecordings = config.GetValue("menuRecFolderSize") + 2; + menuItemHeightRecordings = menuContentHeight / config.GetValue("numRecordingsMenuItems") - config.GetValue("spaceMenu"); menuItemHeightTracks = config.GetValue("tracksItemHeight"); + menuMainMenuIconSize = menuItemHeightMain - 2 * menuSpace; + cSize logoSize = ScaleToFit(1000, + menuItemHeightSchedule - 2, + config.GetValue("logoWidthOriginal"), + config.GetValue("logoHeightOriginal")); + menuLogoWidth = logoSize.Width(); + menuLogoHeight = logoSize.Height(); + menuButtonsBorder = menuFooterHeight / 6; menuButtonWidth = (osdWidth / 4) - 2 * menuButtonsBorder; menuButtonHeight = menuFooterHeight - 3 * menuButtonsBorder; |