diff options
Diffstat (limited to 'view.c')
-rw-r--r-- | view.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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; |