summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-01 20:50:30 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-01 22:38:20 +0300
commit2ab3f0d8d04374b330c91a9f065efa0f526d7824 (patch)
tree8bf7abb126fe43374b3a550d36685525bd3b8235 /src/gui
parenta45370aa8bf7a5558801220d625bff89f3f1a185 (diff)
downloadmv-2ab3f0d8d04374b330c91a9f065efa0f526d7824.tar.gz
mv-2ab3f0d8d04374b330c91a9f065efa0f526d7824.tar.bz2
mv-2ab3f0d8d04374b330c91a9f065efa0f526d7824.tar.xz
mv-2ab3f0d8d04374b330c91a9f065efa0f526d7824.zip
add software renderer for SDL2.
before it used default renderer with software flags.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/desktop.cpp6
1 files changed, 0 insertions, 6 deletions
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))
{