diff options
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r-- | src/gui/theme.cpp | 7 |
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 ¶m = 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; } } |