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/resources/ambientlayer.cpp | |
parent | c18d789b35f29611c88d0e3bdbb5619500ea7a2a (diff) | |
download | manaplus-cd327e877804a824db51d1e0831ad9e13b0e18b3.tar.gz manaplus-cd327e877804a824db51d1e0831ad9e13b0e18b3.tar.bz2 manaplus-cd327e877804a824db51d1e0831ad9e13b0e18b3.tar.xz manaplus-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.cpp | 4 |
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, |