From 58e5d87fbd0bda3fb6865d7d19fc218729660c99 Mon Sep 17 00:00:00 2001 From: codereader Date: Mon, 30 Nov 2020 05:32:25 +0100 Subject: [PATCH] #5436: Use FTGL namespace when accessing the FT API --- libs/wxutil/GLFont.cpp | 6 +++--- radiant/render/OpenGLModule.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/wxutil/GLFont.cpp b/libs/wxutil/GLFont.cpp index 1784f5a5fd..9815f9accd 100644 --- a/libs/wxutil/GLFont.cpp +++ b/libs/wxutil/GLFont.cpp @@ -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() @@ -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(FTGL::ftglGetFontLineHeight(_ftglFont)); } else @@ -38,7 +38,7 @@ GLFont::~GLFont() if (_ftglFont) { FTGL::ftglDestroyFont(_ftglFont); - _ftglFont = NULL; + _ftglFont = nullptr; } } diff --git a/radiant/render/OpenGLModule.cpp b/radiant/render/OpenGLModule.cpp index 5da2d73004..3cc98650d8 100644 --- a/radiant/render/OpenGLModule.cpp +++ b/radiant/render/OpenGLModule.cpp @@ -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); } }