mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
CNeutrinoFonts: reduce debug spam
In some cases with many following dynamic size changes, it could be better to suppress this output.
This commit is contained in:
@@ -269,10 +269,12 @@ int CNeutrinoFonts::getDynFontSize(int dx, int dy, std::string text, int style)
|
|||||||
if (text.empty()) tmpText = "x";
|
if (text.empty()) tmpText = "x";
|
||||||
_width = dynFont->getRenderWidth(tmpText);
|
_width = dynFont->getRenderWidth(tmpText);
|
||||||
if ((_height > dy) || (_width > dx)) {
|
if ((_height > dy) || (_width > dx)) {
|
||||||
if (dynFlag)
|
if (dynFlag){
|
||||||
dynSize--;
|
dynSize--;
|
||||||
else
|
}else{
|
||||||
printf("##### [%s] Specified size (dx=%d, dy=%d) too small, use minimal font size.\n", __FUNCTION__, dx, dy);
|
if (debug)
|
||||||
|
printf("##### [%s] Specified size (dx=%d, dy=%d) too small, use minimal font size.\n", __FUNCTION__, dx, dy);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if ((_height < dy) || (_width < dx)) {
|
else if ((_height < dy) || (_width < dx)) {
|
||||||
|
Reference in New Issue
Block a user