diff options
Diffstat (limited to 'src/resources/atlasmanager.cpp')
-rw-r--r-- | src/resources/atlasmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/atlasmanager.cpp b/src/resources/atlasmanager.cpp index cdbd26a65..c78c9911f 100644 --- a/src/resources/atlasmanager.cpp +++ b/src/resources/atlasmanager.cpp @@ -25,6 +25,7 @@ #include "resources/atlasmanager.h" #include "configuration.h" +#include "settings.h" #ifdef DEBUG_IMAGES #include "logger.h" @@ -61,7 +62,7 @@ AtlasResource *AtlasManager::loadTextureAtlas(const std::string &name, loadImages(files, images); int maxSize = OpenGLImageHelper::getTextureSize(); #if !defined(ANDROID) && !defined(__APPLE__) - const int sz = config.getIntValue("textureSize"); + int sz = settings.textureSize; if (maxSize > sz) maxSize = sz; #endif |