diff options
Diffstat (limited to 'channelgroup.c')
-rw-r--r-- | channelgroup.c | 12 |
1 files changed, 6 insertions, 6 deletions
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); } } |