Skip to content
Permalink
Browse files

repeat dc193a3 for gl.Text

  • Loading branch information...
rtri
rtri committed Oct 20, 2019
1 parent 355eebb commit 46f381806716bd9e74ddca55709492334e108c3f
Showing with 5 additions and 2 deletions.
  1. +5 −2 rts/Lua/LuaOpenGL.cpp
@@ -1023,7 +1023,7 @@ int LuaOpenGL::Text(lua_State* L)
const float ypos = luaL_checkfloat(L, 3);
const float size = luaL_optnumber(L, 4, 12.0f);

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

bool outline = false;
bool lightOut = false;
@@ -1047,8 +1047,11 @@ int LuaOpenGL::Text(lua_State* L)
case 'o': { options |= FONT_OUTLINE; } break;
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 DrawBufferedText

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

0 comments on commit 46f3818

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