diff options
Diffstat (limited to 'epggrid.c')
-rw-r--r-- | epggrid.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -20,9 +20,9 @@ cEpgGrid::~cEpgGrid(void) { void cEpgGrid::SetViewportHeight() { int viewportHeightOld = viewportHeight; if ( column->Start() > StartTime() ) { - viewportHeight = (std::min((int)EndTime(), column->Stop()) - column->Start()) /60; + viewportHeight = (std::min((int)EndTime(), column->Stop()) - column->Start()) / 60; } else if ( column->Stop() < EndTime() ) { - viewportHeight = (column->Stop() - StartTime()) /60; + viewportHeight = (column->Stop() - StartTime()) / 60; if (viewportHeight < 0) viewportHeight = 0; } else { viewportHeight = Duration() / 60; @@ -37,11 +37,11 @@ void cEpgGrid::PositionPixmap() { int x0 = column->getX(); int y0 = geoManager.statusHeaderHeight + geoManager.channelHeaderHeight + geoManager.channelGroupsHeight; if ( column->Start() < StartTime() ) { - y0 += (StartTime() - column->Start())/60*geoManager.minutePixel; + y0 += (StartTime() - column->Start()) / 60 * geoManager.minutePixel; } if (!pixmap) { pixmap = osdManager.requestPixmap(-1, cRect(x0, y0, geoManager.colWidth, viewportHeight), - cRect(0, 0, geoManager.colWidth, Duration()/60*geoManager.minutePixel)); + cRect(0, 0, geoManager.colWidth, Duration() / 60 * geoManager.minutePixel)); } else { pixmap->SetViewPort(cRect(x0, y0, geoManager.colWidth, viewportHeight)); } @@ -49,11 +49,11 @@ void cEpgGrid::PositionPixmap() { int x0 = geoManager.channelHeaderWidth + geoManager.channelGroupsWidth; int y0 = column->getY(); if ( column->Start() < StartTime() ) { - x0 += (StartTime() - column->Start())/60*geoManager.minutePixel; + x0 += (StartTime() - column->Start()) / 60 * geoManager.minutePixel; } if (!pixmap) { pixmap = osdManager.requestPixmap(-1, cRect(x0, y0, viewportHeight, geoManager.rowHeight), - cRect(0, 0, Duration()/60*geoManager.minutePixel, geoManager.rowHeight)); + cRect(0, 0, Duration() / 60 * geoManager.minutePixel, geoManager.rowHeight)); } else { pixmap->SetViewPort(cRect(x0, y0, viewportHeight, geoManager.rowHeight )); } |