mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Get rid of the annoying font size warnings
Since we're not doing anything about them anyway, and I get them spamming me on every client start.
This commit is contained in:
parent
a56fbbc340
commit
d6ba9440ca
|
@ -1714,10 +1714,7 @@ public:
|
|||
virtual void UploadEntityLayerText(IGraphics::CTextureHandle Texture, const char *pText, int Length, float x, float y, int FontSize)
|
||||
{
|
||||
if (FontSize < 1)
|
||||
{
|
||||
dbg_msg("pFont", "texture with id '%d' will not be updated. Reason - font is too small", (int)Texture);
|
||||
return;
|
||||
}
|
||||
|
||||
const char *pCurrent = (char *)pText;
|
||||
const char *pEnd = pCurrent + Length;
|
||||
|
|
|
@ -191,11 +191,6 @@ void CMapImages::UpdateEntityLayerText(IGraphics::CTextureHandle Texture, int Te
|
|||
int CurrentNumberSuitableFontSize = TextRender()->AdjustFontSize(aBuf, DigitsCount, TextureSize);
|
||||
int UniversalSuitableFontSize = CurrentNumberSuitableFontSize*0.9; // should be smoothed enough to fit any digits combination
|
||||
|
||||
if (UniversalSuitableFontSize < 1)
|
||||
{
|
||||
dbg_msg("pFont", "texture with id '%d' will not be loaded. Reason - font is too small", (int)Texture);
|
||||
}
|
||||
|
||||
int ApproximateTextWidth = TextRender()->CalculateTextWidth(aBuf, DigitsCount, 0, UniversalSuitableFontSize);
|
||||
int XOffSet = (64-ApproximateTextWidth)/2;
|
||||
YOffset += ((TextureSize - UniversalSuitableFontSize)/2);
|
||||
|
|
Loading…
Reference in a new issue