Cosmetic changes / SwitchTimer& operator / std:min,std:max

This commit is contained in:
kamel5
2018-03-08 13:30:41 +01:00
committed by kamel5
parent 6ae27238af
commit bf2937d86c
22 changed files with 157 additions and 142 deletions

View File

@@ -82,7 +82,7 @@ void cStatusHeader::DrawInfoText(cGrid *grid) {
int lineHeight = fontManager.FontStatusHeader->Height();
int textLines = description.Lines();
int maxLines = heightText / lineHeight;
int lines = min(textLines, maxLines);
int lines = std::min(textLines, maxLines);
for (int i = 0; i < lines-1; i++) {
pixmapText->DrawText(cPoint(x,y), description.GetLine(i), theme.Color(clrFont), colorTextBack, fontManager.FontStatusHeader);
y += lineHeight;