mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
CNeutrinoFonts: reduce debug spam
In some cases with many following dynamic size changes,
it could be better to suppress this output.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 96e05c69dc
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-19 (Sun, 19 Mar 2017)
Origin message was:
------------------
CNeutrinoFonts: reduce debug spam
In some cases with many following dynamic size changes,
it could be better to suppress this output.
------------------
This commit was generated by Migit
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