summaryrefslogtreecommitdiff
path: root/src/gui/widgets/desktop.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/widgets/desktop.cpp
parent00cda69b883d6354f093be6ee39a7936cb798979 (diff)
downloadManaVerse-af374aa2b2944749193af49cdca28532cf56fae2.tar.gz
ManaVerse-af374aa2b2944749193af49cdca28532cf56fae2.tar.bz2
ManaVerse-af374aa2b2944749193af49cdca28532cf56fae2.tar.xz
ManaVerse-af374aa2b2944749193af49cdca28532cf56fae2.zip
add renderer enum.
Diffstat (limited to 'src/gui/widgets/desktop.cpp')
-rw-r--r--src/gui/widgets/desktop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp
index 0fd9fefef..93b0a96e7 100644
--- a/src/gui/widgets/desktop.cpp
+++ b/src/gui/widgets/desktop.cpp
@@ -100,7 +100,7 @@ void Desktop::draw(gcn::Graphics *graphics)
}
#ifndef USE_SDL2
- if (!imageHelper->useOpenGL())
+ if (imageHelper->useOpenGL() == RENDER_SOFTWARE)
{
g->drawImage(mWallpaper,
(width - wallpWidth) / 2,
@@ -153,7 +153,7 @@ void Desktop::setBestFittingWallpaper()
#ifdef USE_SDL2
if (false &&
#else
- if (!imageHelper->useOpenGL() &&
+ if (imageHelper->useOpenGL() == RENDER_SOFTWARE &&
#endif
(nWallPaper->getWidth() != width
|| nWallPaper->getHeight() != height))