diff options
author | louis <louis.braun@gmx.de> | 2013-05-31 13:58:22 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-05-31 13:58:22 +0200 |
commit | 4f960c48cb2d99a78ac0fa8ee1dd687fd213ef2b (patch) | |
tree | 399aebc6fa54aad39fe3e712f44aa7ec3275f783 /headergrid.c | |
parent | 4f93ac2516dacdec5e142aaf60a06c6e1c16daf3 (diff) | |
download | vdr-plugin-tvguide-4f960c48cb2d99a78ac0fa8ee1dd687fd213ef2b.tar.gz vdr-plugin-tvguide-4f960c48cb2d99a78ac0fa8ee1dd687fd213ef2b.tar.bz2 |
Added channel group support
Diffstat (limited to 'headergrid.c')
-rw-r--r-- | headergrid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/headergrid.c b/headergrid.c index 06e8b49..280ea46 100644 --- a/headergrid.c +++ b/headergrid.c @@ -15,11 +15,11 @@ void cHeaderGrid::createBackground(int num) { int x, y, width, height;
if (tvguideConfig.displayMode == eVertical) {
x = tvguideConfig.timeLineWidth + num*tvguideConfig.colWidth;
- y = tvguideConfig.statusHeaderHeight;
+ y = tvguideConfig.statusHeaderHeight + tvguideConfig.channelGroupsHeight;
width = tvguideConfig.colWidth;
height = tvguideConfig.channelHeaderHeight;
} else if (tvguideConfig.displayMode == eHorizontal) {
- x = 0;
+ x = tvguideConfig.channelGroupsWidth;
y = tvguideConfig.statusHeaderHeight + tvguideConfig.timeLineHeight + num*tvguideConfig.rowHeight;
width = tvguideConfig.channelHeaderWidth;
height = tvguideConfig.rowHeight;
@@ -114,11 +114,11 @@ void cHeaderGrid::setPosition(int num) { int x, y, width, height;
if (tvguideConfig.displayMode == eVertical) {
x = tvguideConfig.timeLineWidth + num*tvguideConfig.colWidth;
- y = tvguideConfig.statusHeaderHeight;
+ y = tvguideConfig.statusHeaderHeight + tvguideConfig.channelGroupsHeight;
width = tvguideConfig.colWidth;
height = tvguideConfig.channelHeaderHeight;
} else if (tvguideConfig.displayMode == eHorizontal) {
- x = 0;
+ x = tvguideConfig.channelGroupsWidth;
y = tvguideConfig.statusHeaderHeight + tvguideConfig.timeLineHeight + num*tvguideConfig.rowHeight;
width = tvguideConfig.channelHeaderWidth;
height = tvguideConfig.rowHeight;
|