summaryrefslogtreecommitdiff
path: root/src/resources/ambientlayer.cpp
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/resources/ambientlayer.cpp
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/resources/ambientlayer.cpp')
-rw-r--r--src/resources/ambientlayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/ambientlayer.cpp b/src/resources/ambientlayer.cpp
index 6c8e22893..f75300367 100644
--- a/src/resources/ambientlayer.cpp
+++ b/src/resources/ambientlayer.cpp
@@ -28,7 +28,7 @@
#include "resources/image.h"
#include "resources/imagehelper.h"
-#include "resources/resourcemanager/resourcemanager.h"
+#include "resources/loaders/rescaledloader.h"
#include "debug.h"
@@ -66,7 +66,7 @@ AmbientLayer::AmbientLayer(const std::string &name,
{
// Rescale the overlay to keep the ratio as if we were on
// the default resolution...
- Image *const rescaledOverlay = resourceManager->getRescaled(
+ Image *const rescaledOverlay = Loader::getRescaled(
mImage,
CAST_S32(mImage->mBounds.w) /
defaultScreenWidth * width,