summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-25 19:14:07 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-25 19:14:07 +0300
commitbb8be1acea37f09c134d7d4042869a679cf8a12b (patch)
tree683667f9633605d9bdfd29a292063c81216e23a0 /src/gui/theme.cpp
parente2f03241a1ba9d6b536b0b7a6f995e4e8d894408 (diff)
downloadplus-bb8be1acea37f09c134d7d4042869a679cf8a12b.tar.gz
plus-bb8be1acea37f09c134d7d4042869a679cf8a12b.tar.bz2
plus-bb8be1acea37f09c134d7d4042869a679cf8a12b.tar.xz
plus-bb8be1acea37f09c134d7d4042869a679cf8a12b.zip
Move sub images load function from resourcemanager into separate file.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 58840f9a8..796c27216 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -38,6 +38,7 @@
#include "resources/dye/dyepalette.h"
#include "resources/loaders/imageloader.h"
+#include "resources/loaders/subimageloader.h"
#include "resources/resourcemanager/resourcemanager.h"
@@ -376,8 +377,10 @@ struct SkinHelper final
const SkinParameter &param = params[f];
if (partType == param.name)
{
- rect->grid[param.index] = resourceManager->getSubImage(
- image, xPos, yPos, width, height);
+ rect->grid[param.index] = Loader::getSubImage(
+ image,
+ xPos, yPos,
+ width, height);
return true;
}
}