Skip to content
Permalink
Browse files

disable FONT_NEAREST by default for LuaFonts::Print

  • Loading branch information...
rtri
rtri committed Oct 15, 2019
1 parent 76b614c commit dc193a30ad5db4dd122f2911a175ed192d0a2199
Showing with 2 additions and 2 deletions.
  1. +2 −2 rts/Lua/LuaFonts.cpp
@@ -211,7 +211,7 @@ int LuaFonts::Print(lua_State* L)
const float ypos = luaL_checkfloat(L, 4);
const float size = luaL_optfloat(L, 5, f->GetSize());

unsigned int options = FONT_NEAREST;
unsigned int options = 0;

if ((lua_gettop(L) >= 6) && lua_isstring(L, 6)) {
const char* c = lua_tostring(L, 6);
@@ -232,7 +232,7 @@ int LuaFonts::Print(lua_State* L)
case 'o':
case 'O': { options |= FONT_OUTLINE; } break;

case 'n': { options ^= FONT_NEAREST; } break;
case 'n': { options |= FONT_NEAREST; } break;
case 'B': { options |= FONT_BUFFERED; } break; // for DrawBuffered

case 'N': { options |= FONT_NORM; } break;

0 comments on commit dc193a3

Please sign in to comment.
You can’t perform that action at this time.