summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-27 22:17:47 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-27 22:17:47 +0300
commitcd327e877804a824db51d1e0831ad9e13b0e18b3 (patch)
tree33388dbe50c78d11687c800363112fb9a3688eaf /src/gui
parentc18d789b35f29611c88d0e3bdbb5619500ea7a2a (diff)
downloadplus-cd327e877804a824db51d1e0831ad9e13b0e18b3.tar.gz
plus-cd327e877804a824db51d1e0831ad9e13b0e18b3.tar.bz2
plus-cd327e877804a824db51d1e0831ad9e13b0e18b3.tar.xz
plus-cd327e877804a824db51d1e0831ad9e13b0e18b3.zip
Move rescaled images load function from resourcemanager into separate file.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/desktop.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp
index 701145440..6c939db5c 100644
--- a/src/gui/widgets/desktop.cpp
+++ b/src/gui/widgets/desktop.cpp
@@ -35,6 +35,8 @@
#include "resources/imagehelper.h"
#include "resources/wallpaper.h"
+#include "resources/loaders/rescaledloader.h"
+
#include "resources/resourcemanager/resourcemanager.h"
#include "render/graphics.h"
@@ -190,7 +192,7 @@ void Desktop::setBestFittingWallpaper()
nWallPaper->getHeight() != height))
{
// We rescale to obtain a fullscreen wallpaper...
- Image *const newRsclWlPpr = resourceManager->getRescaled(
+ Image *const newRsclWlPpr = Loader::getRescaled(
nWallPaper, width, height);
if (newRsclWlPpr)