Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Minecraft.Client/Font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
}

Expand Down