Merge branch 'master' into pu/fb-setmode

This commit is contained in:
M. Liebmann
2017-03-20 00:00:35 +01:00
7 changed files with 137 additions and 125 deletions

View File

@@ -272,10 +272,12 @@ int CNeutrinoFonts::getDynFontSize(int dx, int dy, std::string text, int style)
if (text.empty()) tmpText = "x";
_width = dynFont->getRenderWidth(tmpText);
if ((_height > dy) || (_width > dx)) {
if (dynFlag)
if (dynFlag){
dynSize--;
else
printf("##### [%s] Specified size (dx=%d, dy=%d) too small, use minimal font size.\n", __FUNCTION__, dx, dy);
}else{
if (debug)
printf("##### [%s] Specified size (dx=%d, dy=%d) too small, use minimal font size.\n", __FUNCTION__, dx, dy);
}
break;
}
else if ((_height < dy) || (_width < dx)) {