From fd3223578c0a0789627a92cc63235c24e75f87c3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 8 Apr 2017 20:30:40 +0300 Subject: Remove most setters and getters from Resource class. --- src/resources/loaders/rescaledloader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/loaders/rescaledloader.cpp') diff --git a/src/resources/loaders/rescaledloader.cpp b/src/resources/loaders/rescaledloader.cpp index e4a9112f1..8f77103ff 100644 --- a/src/resources/loaders/rescaledloader.cpp +++ b/src/resources/loaders/rescaledloader.cpp @@ -53,7 +53,7 @@ namespace if (!rescaled) { reportAlways("Rescale image failed: %s", - rl->image->getIdPath().c_str()); + rl->image->mIdPath.c_str()); return nullptr; } return rescaled; @@ -68,7 +68,7 @@ Image *Loader::getRescaled(const Image *const image, if (!image) return nullptr; - const std::string idPath = image->getIdPath() + strprintf( + const std::string idPath = image->mIdPath + strprintf( "_rescaled%dx%d", width, height); const RescaledLoader rl = { image, width, height }; Image *const img = static_cast( -- cgit v1.2.3-70-g09d2