From 2ab3f0d8d04374b330c91a9f065efa0f526d7824 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 Sep 2013 20:50:30 +0300 Subject: add software renderer for SDL2. before it used default renderer with software flags. --- src/gui/widgets/desktop.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp index 93b0a96e7..07a49c420 100644 --- a/src/gui/widgets/desktop.cpp +++ b/src/gui/widgets/desktop.cpp @@ -99,7 +99,6 @@ void Desktop::draw(gcn::Graphics *graphics) g->fillRectangle(gcn::Rectangle(0, 0, width, height)); } -#ifndef USE_SDL2 if (imageHelper->useOpenGL() == RENDER_SOFTWARE) { g->drawImage(mWallpaper, @@ -107,7 +106,6 @@ void Desktop::draw(gcn::Graphics *graphics) (height - wallpHeight) / 2); } else -#endif { g->drawRescaledImage(mWallpaper, 0, 0, 0, 0, wallpWidth, wallpHeight, @@ -150,11 +148,7 @@ void Desktop::setBestFittingWallpaper() const int width = rect.width; const int height = rect.height; -#ifdef USE_SDL2 - if (false && -#else if (imageHelper->useOpenGL() == RENDER_SOFTWARE && -#endif (nWallPaper->getWidth() != width || nWallPaper->getHeight() != height)) { -- cgit v1.2.3-70-g09d2