summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-01 00:50:45 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-01 00:50:45 +0300
commitaf374aa2b2944749193af49cdca28532cf56fae2 (patch)
treeb3e4fd2609a00175dbd94e42ab3d72984b4a051b /src/gui/sdlfont.cpp
parent00cda69b883d6354f093be6ee39a7936cb798979 (diff)
downloadmanaplus-af374aa2b2944749193af49cdca28532cf56fae2.tar.gz
manaplus-af374aa2b2944749193af49cdca28532cf56fae2.tar.bz2
manaplus-af374aa2b2944749193af49cdca28532cf56fae2.tar.xz
manaplus-af374aa2b2944749193af49cdca28532cf56fae2.zip
add renderer enum.
Diffstat (limited to 'src/gui/sdlfont.cpp')
-rw-r--r--src/gui/sdlfont.cpp6
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: " +