summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-01-11 11:32:34 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-01-11 11:33:16 +0100
commitdecfb2d39d2a161d32cf15eda2879a005b6d24e1 (patch)
treed0823fec461e77f2314ce84663649223560839a7
parent5f4ea6b30dfcc2fee15bdaba84514a3f039e6912 (diff)
downloadvdr-plugin-tvguide-decfb2d39d2a161d32cf15eda2879a005b6d24e1.tar.gz
vdr-plugin-tvguide-decfb2d39d2a161d32cf15eda2879a005b6d24e1.tar.bz2
Coemetic changes
-rw-r--r--epggrid.c12
-rw-r--r--view.c14
2 files changed, 13 insertions, 13 deletions
diff --git a/epggrid.c b/epggrid.c
index 9be5c77..dab3c6d 100644
--- a/epggrid.c
+++ b/epggrid.c
@@ -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 ));
}
diff --git a/view.c b/view.c
index cff0afe..d6daf70 100644
--- a/view.c
+++ b/view.c
@@ -222,7 +222,7 @@ void cView::DrawContent(std::string *text) {
wText.Set(text->c_str(), font, width - 2 * border);
int lineHeight = font->Height();
int textLines = wText.Lines();
- int textHeight = lineHeight * textLines + 2*border;
+ int textHeight = lineHeight * textLines + 2 * border;
int yText = border;
CreateContent(textHeight);
for (int i=0; i < textLines; i++) {
@@ -252,14 +252,14 @@ void cView::DrawFloatingContent(std::string *infoText, cTvMedia *img, cTvMedia *
int lineHeight = font->Height();
int textLinesTall = wTextTall.Lines();
int textLinesFull = wTextFull.Lines();
- int textHeight = lineHeight * (textLinesTall + textLinesFull) + 2*border;
+ int textHeight = lineHeight * (textLinesTall + textLinesFull) + 2 * border;
int yText = border;
- CreateContent(std::max(textHeight, imgHeight + 2*border));
- for (int i=0; i < textLinesTall; i++) {
+ CreateContent(std::max(textHeight, imgHeight + 2 * border));
+ for (int i = 0; i < textLinesTall; i++) {
pixmapContent->DrawText(cPoint(border, yText), wTextTall.GetLine(i), theme.Color(clrFont), clrTransparent, font);
yText += lineHeight;
}
- for (int i=0; i < textLinesFull; i++) {
+ for (int i = 0; i < textLinesFull; i++) {
pixmapContent->DrawText(cPoint(border, yText), wTextFull.GetLine(i), theme.Color(clrFont), clrTransparent, font);
yText += lineHeight;
}
@@ -274,13 +274,13 @@ void cView::DrawFloatingContent(std::string *infoText, cTvMedia *img, cTvMedia *
osdManager.flush();
if (imgLoader.LoadPoster(img2->path.c_str(), imgWidth2, imgHeight2)) {
if (Running() && pixmapContent)
- pixmapContent->DrawImage(cPoint(width - imgWidth2 - border, imgHeight + 2*border), imgLoader.GetImage());
+ pixmapContent->DrawImage(cPoint(width - imgWidth2 - border, imgHeight + 2 * border), imgLoader.GetImage());
}
}
void cView::CreateFloatingTextWrapper(cTextWrapper *twNarrow, cTextWrapper *twFull, std::string *text, int widthImg, int heightImg) {
int lineHeight = font->Height();
- int linesNarrow = (heightImg + 2*border)/ lineHeight;
+ int linesNarrow = (heightImg + 2 * border)/ lineHeight;
int linesDrawn = 0;
int y = 0;
int widthNarrow = width - 3 * border - widthImg;