diff options
Diffstat (limited to 'src/gui/sdlfont.cpp')
-rw-r--r-- | src/gui/sdlfont.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp index c9093b747..54dbfbff6 100644 --- a/src/gui/sdlfont.cpp +++ b/src/gui/sdlfont.cpp @@ -48,7 +48,7 @@ const unsigned int CACHE_SIZE_SMALL3 = 170; const unsigned int CLEAN_TIME = 7; const int OUTLINE_SIZE = 1; -bool SDLFont::mOpengl(true); +bool SDLFont::mSoftMode(false); char *strBuf; @@ -99,7 +99,7 @@ bool SDLTextChunkSmall::operator<(const SDLTextChunkSmall &chunk) const if (c2.b != color2.b) return c2.b > color2.b; - if (c.a != color.a && !SDLFont::mOpengl) + if (c.a != color.a && SDLFont::mSoftMode) return c.a > color.a; return false; @@ -347,7 +347,7 @@ SDLFont::SDLFont(std::string filename, if (fontCounter == 0) { - mOpengl = imageHelper->useOpenGL(); + mSoftMode = imageHelper->useOpenGL() == RENDER_SOFTWARE; if (TTF_Init() == -1) { throw GCN_EXCEPTION("Unable to initialize SDL_ttf: " + |