mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-08-20 00:07:15 +00:00
fix: Disable font mipmapping (#1410)
This commit is contained in:
parent
ae3c843ee5
commit
dea2bad0c4
|
|
@ -404,6 +404,8 @@ void Font::draw(const wstring &str, bool dropShadow, int initialColor)
|
||||||
t->begin();
|
t->begin();
|
||||||
t->color(currentColor & 0x00ffffff, (currentColor >> 24) & 255);
|
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)
|
for (int i = 0; i < static_cast<int>(cleanStr.length()); ++i)
|
||||||
{
|
{
|
||||||
// Map character
|
// Map character
|
||||||
|
|
@ -481,6 +483,8 @@ void Font::draw(const wstring &str, bool dropShadow, int initialColor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
t->setMipmapEnable(prev); //Reinstates previously used enabled value - Botch
|
||||||
|
|
||||||
t->end();
|
t->end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue