From af374aa2b2944749193af49cdca28532cf56fae2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 Sep 2013 00:50:45 +0300 Subject: add renderer enum. --- src/gui/widgets/desktop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/desktop.cpp') 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)) -- cgit v1.2.3-60-g2f50