summaryrefslogtreecommitdiff
path: root/geometrymanager.c
diff options
context:
space:
mode:
Diffstat (limited to 'geometrymanager.c')
-rw-r--r--geometrymanager.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/geometrymanager.c b/geometrymanager.c
index c82b7b2..0c0b938 100644
--- a/geometrymanager.c
+++ b/geometrymanager.c
@@ -137,11 +137,16 @@ void cGeometryManager::SetDisplayChannelSizes(void) {
channelLogoHeight = logoSize.Height();
channelLogoX = (channelLogoWidthTotal - channelLogoWidth) / 2;
- if (config.GetValue("displayType") == dtGraphical) {
- channelLogoY = (channelTop + channelHeaderHeight)
- + (channelHeight - channelHeaderHeight - channelLogoHeight)/2;
- } else {
- channelLogoY = channelTop + (channelHeight - channelLogoHeight)/2;
+ switch (config.GetValue("logoVerticalAlignment")) {
+ case lvTop:
+ channelLogoY = channelTop + (channelHeight - channelHeaderHeight - channelLogoHeight)/2;
+ break;
+ case lvMiddle:
+ channelLogoY = channelTop + (channelHeight - channelLogoHeight)/2;
+ break;
+ case lvBottom:
+ channelLogoY = (channelTop + channelHeaderHeight) + (channelHeight - channelHeaderHeight - channelLogoHeight)/2;
+ break;
}
switch (config.GetValue("logoPosition")) {