summaryrefslogtreecommitdiff
path: root/epggrid.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-05-26 11:38:05 +0200
committerlouis <louis.braun@gmx.de>2013-05-26 11:38:05 +0200
commit812fd1b7a5aeb67d4139255a6df8230c420ea57e (patch)
tree36e0408bf9f4191b37cf11bd9dd01e381d105f6e /epggrid.c
parent9f47ab764efc83d8bf94f25c4badeb6e4c91c649 (diff)
downloadvdr-plugin-tvguide-812fd1b7a5aeb67d4139255a6df8230c420ea57e.tar.gz
vdr-plugin-tvguide-812fd1b7a5aeb67d4139255a6df8230c420ea57e.tar.bz2
whitespace cleanup
Diffstat (limited to 'epggrid.c')
-rw-r--r--epggrid.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/epggrid.c b/epggrid.c
index 711b0e1..ab7a650 100644
--- a/epggrid.c
+++ b/epggrid.c
@@ -2,31 +2,31 @@
#include "epggrid.h"
cEpgGrid::cEpgGrid(cChannelColumn *c, const cEvent *event) : cGrid(c) {
- this->event = event;
- extText = new cTextWrapper();
- hasTimer = false;
- if (column->HasTimer())
- hasTimer = event->HasTimer();
+ this->event = event;
+ extText = new cTextWrapper();
+ hasTimer = false;
+ if (column->HasTimer())
+ hasTimer = event->HasTimer();
dummy = false;
}
cEpgGrid::~cEpgGrid(void) {
- delete extText;
+ delete extText;
}
void cEpgGrid::SetViewportHeight() {
- int viewportHeightOld = viewportHeight;
- if ( column->Start() > StartTime() ) {
- viewportHeight = (min((int)EndTime(), column->Stop()) - column->Start()) /60;
- } else if ( column->Stop() < EndTime() ) {
- viewportHeight = (column->Stop() - StartTime()) /60;
+ int viewportHeightOld = viewportHeight;
+ if ( column->Start() > StartTime() ) {
+ viewportHeight = (min((int)EndTime(), column->Stop()) - column->Start()) /60;
+ } else if ( column->Stop() < EndTime() ) {
+ viewportHeight = (column->Stop() - StartTime()) /60;
if (viewportHeight < 0) viewportHeight = 0;
- } else {
- viewportHeight = Duration() / 60;
- }
+ } else {
+ viewportHeight = Duration() / 60;
+ }
viewportHeight *= tvguideConfig.minutePixel;
- if (viewportHeight != viewportHeightOld)
- dirty = true;
+ if (viewportHeight != viewportHeightOld)
+ dirty = true;
}
void cEpgGrid::PositionPixmap() {
@@ -103,11 +103,11 @@ void cEpgGrid::drawText() {
}
void cEpgGrid::drawRecIcon() {
- cString recIconText("REC");
- int width = tvguideConfig.FontGrid->Width(*recIconText)+2*borderWidth;
- int height = tvguideConfig.FontGrid->Height()+10;
- pixmap->DrawRectangle( cRect(Width() - width - borderWidth, Height() - height - borderWidth, width, height), theme.Color(clrButtonRed));
- pixmap->DrawText(cPoint(Width() - width, Height() - height - borderWidth/2), *recIconText, theme.Color(clrFont), clrTransparent, tvguideConfig.FontGrid);
+ cString recIconText("REC");
+ int width = tvguideConfig.FontGrid->Width(*recIconText)+2*borderWidth;
+ int height = tvguideConfig.FontGrid->Height()+10;
+ pixmap->DrawRectangle( cRect(Width() - width - borderWidth, Height() - height - borderWidth, width, height), theme.Color(clrButtonRed));
+ pixmap->DrawText(cPoint(Width() - width, Height() - height - borderWidth/2), *recIconText, theme.Color(clrFont), clrTransparent, tvguideConfig.FontGrid);
}
cString cEpgGrid::getTimeString(void) {
@@ -115,7 +115,7 @@ cString cEpgGrid::getTimeString(void) {
}
void cEpgGrid::debug() {
- esyslog("tvguide epggrid: %s: %s, %s, viewportHeight: %d px, Duration: %d min, active: %d",
+ esyslog("tvguide epggrid: %s: %s, %s, viewportHeight: %d px, Duration: %d min, active: %d",
column->Name(),
*(event->GetTimeString()),
event->Title(),