mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
Merge branch 'master' into pu/fb-setmode
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user