Skip to content

Commit

Permalink
#5436: Use FTGL namespace when accessing the FT API
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Nov 30, 2020
1 parent d7806be commit 58e5d87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions libs/wxutil/GLFont.cpp
Expand Up @@ -10,7 +10,7 @@ namespace wxutil

GLFont::GLFont(Style style, unsigned int size) :
_pixelHeight(0),
_ftglFont(NULL)
_ftglFont(nullptr)
{
// Load the locally-provided TTF font file
std::string fontpath = module::GlobalModuleRegistry()
Expand All @@ -24,7 +24,7 @@ GLFont::GLFont(Style style, unsigned int size) :

if (_ftglFont)
{
ftglSetFontFaceSize(_ftglFont,size,0);
FTGL::ftglSetFontFaceSize(_ftglFont, size, 0);
_pixelHeight = static_cast<int>(FTGL::ftglGetFontLineHeight(_ftglFont));
}
else
Expand All @@ -38,7 +38,7 @@ GLFont::~GLFont()
if (_ftglFont)
{
FTGL::ftglDestroyFont(_ftglFont);
_ftglFont = NULL;
_ftglFont = nullptr;
}
}

Expand Down
2 changes: 1 addition & 1 deletion radiant/render/OpenGLModule.cpp
Expand Up @@ -44,7 +44,7 @@ void OpenGLModule::drawString(const std::string& string) const
{
if (_font)
{
ftglRenderFont(_font->getFtglFont(), string.c_str(), 0xFFFF);//FTGL_RENDER_ALL);
FTGL::ftglRenderFont(_font->getFtglFont(), string.c_str(), FTGL::RENDER_ALL);
}
}

Expand Down

0 comments on commit 58e5d87

Please sign in to comment.