Update Font.cpp

This commit is contained in:
DeadVoxelx
2026-04-13 19:58:58 -04:00
committed by GitHub
parent cc2e0ac729
commit 6d4618451a

View File

@@ -310,6 +310,8 @@ void Font::draw(const wstring &str, bool dropShadow, int initialColor)
t->begin();
t->color(currentColor & 0x00ffffff, (currentColor >> 24) & 255);
bool prev = t->setMipmapEnable(false); // Disable mipmapping for fonts, and save previous enabled value to be restored later - Botch
for (int i = 0; i < static_cast<int>(cleanStr.length()); ++i)
{
// Map character
@@ -371,6 +373,8 @@ void Font::draw(const wstring &str, bool dropShadow, int initialColor)
addCharacterQuad(c);
}
t->setMipmapEnable(prev); //Reinstates previously used enabled value - Botch
t->end();
}
@@ -749,4 +753,3 @@ void Font::renderUnicodeCharacter(wchar_t c)
xPos += (right - left) / 2 + 1;
}
*/