From 0766d679806e1ed098f562672e88ef324c3cd680 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Thu, 11 Jul 2019 11:28:11 +0200 Subject: Change tvguideConfig to Config --- channelgroup.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'channelgroup.c') diff --git a/channelgroup.c b/channelgroup.c index cc1864c..99420d6 100644 --- a/channelgroup.c +++ b/channelgroup.c @@ -36,12 +36,12 @@ void cChannelGroupGrid::SetBackground() { void cChannelGroupGrid::SetGeometry(int start, int end) { int x, y, width, height; - if (tvguideConfig.displayMode == eVertical) { + if (config.displayMode == eVertical) { x = geoManager.timeLineWidth + start*geoManager.colWidth; y = geoManager.statusHeaderHeight; width = (end - start + 1) * geoManager.colWidth; height = geoManager.channelGroupsHeight; - } else if (tvguideConfig.displayMode == eHorizontal) { + } else if (config.displayMode == eHorizontal) { x = 0; y = geoManager.statusHeaderHeight + geoManager.timeLineHeight + start*geoManager.rowHeight; width = geoManager.channelGroupsWidth; @@ -51,17 +51,17 @@ void cChannelGroupGrid::SetGeometry(int start, int end) { } void cChannelGroupGrid::Draw(void) { - if (tvguideConfig.style == eStyleGraphical) { + if (config.style == eStyleGraphical) { drawBackgroundGraphical(bgChannelGroup); } else { drawBackground(); drawBorder(); } tColor colorText = theme.Color(clrFont); - tColor colorTextBack = (tvguideConfig.style == eStyleFlat)?color:clrTransparent; - if (tvguideConfig.displayMode == eVertical) { + tColor colorTextBack = (config.style == eStyleFlat)?color:clrTransparent; + if (config.displayMode == eVertical) { DrawVertical(colorText, colorTextBack); - } else if (tvguideConfig.displayMode == eHorizontal) { + } else if (config.displayMode == eHorizontal) { DrawHorizontal(colorText, colorTextBack); } } -- cgit v1.2.3