diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-27 22:17:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-27 22:17:47 +0300 |
commit | cd327e877804a824db51d1e0831ad9e13b0e18b3 (patch) | |
tree | 33388dbe50c78d11687c800363112fb9a3688eaf /src/gui/widgets/desktop.cpp | |
parent | c18d789b35f29611c88d0e3bdbb5619500ea7a2a (diff) | |
download | manaverse-cd327e877804a824db51d1e0831ad9e13b0e18b3.tar.gz manaverse-cd327e877804a824db51d1e0831ad9e13b0e18b3.tar.bz2 manaverse-cd327e877804a824db51d1e0831ad9e13b0e18b3.tar.xz manaverse-cd327e877804a824db51d1e0831ad9e13b0e18b3.zip |
Move rescaled images load function from resourcemanager into separate file.
Diffstat (limited to 'src/gui/widgets/desktop.cpp')
-rw-r--r-- | src/gui/widgets/desktop.cpp | 4 |
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) |