diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/image/image.cpp | 2 | ||||
-rw-r--r-- | src/resources/memorycounter.cpp | 2 | ||||
-rw-r--r-- | src/resources/resourcemanager/resourcemanager.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/image/image.cpp b/src/resources/image/image.cpp index 967fc17b8..171e035de 100644 --- a/src/resources/image/image.cpp +++ b/src/resources/image/image.cpp @@ -513,7 +513,7 @@ int Image::calcMemoryLocal() const if (mSDLSurface != nullptr) { sz += CAST_S32(mAlphaCache.size()) * - memoryManager.getSurfaceSize(mSDLSurface); + MemoryManager::getSurfaceSize(mSDLSurface); } return sz; } diff --git a/src/resources/memorycounter.cpp b/src/resources/memorycounter.cpp index 826dcf3e2..13b742c8c 100644 --- a/src/resources/memorycounter.cpp +++ b/src/resources/memorycounter.cpp @@ -37,7 +37,7 @@ int MemoryCounter::calcMemory(const int level) const { const int sumLocal = calcMemoryLocal(); const int sumChilds = calcMemoryChilds(level); - memoryManager.printMemory(getCounterName(), + MemoryManager::printMemory(getCounterName(), level, sumLocal, sumChilds); diff --git a/src/resources/resourcemanager/resourcemanager.cpp b/src/resources/resourcemanager/resourcemanager.cpp index 0764fe94f..74d079541 100644 --- a/src/resources/resourcemanager/resourcemanager.cpp +++ b/src/resources/resourcemanager/resourcemanager.cpp @@ -652,7 +652,7 @@ int calcMemoryLocal() int sz = 24; FOR_EACH (std::set<SDL_Surface*>::iterator, it, deletedSurfaces) { - sz += memoryManager.getSurfaceSize(*it); + sz += MemoryManager::getSurfaceSize(*it); } return sz; } @@ -681,7 +681,7 @@ int calcMemory(const int level) { const int sumLocal = calcMemoryLocal(); const int sumChilds = calcMemoryChilds(0); - memoryManager.printMemory("resource manager", + MemoryManager::printMemory("resource manager", level, sumLocal, sumChilds); |