From 07675230038a24dd251581591379c8fe5cc7bfd1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Apr 2016 20:11:07 +0300 Subject: Add memory count functions into MapLayer and SpecailLayer. Also change all memory count functions into const methods. --- src/resources/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resources/image.cpp') diff --git a/src/resources/image.cpp b/src/resources/image.cpp index b323f8a16..aaa779360 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -474,7 +474,7 @@ void Image::SDLTerminateAlphaCache() mUseAlphaCache = false; } -int Image::calcMemoryLocal() +int Image::calcMemoryLocal() const { // +++ this calculation can be wrong for SDL2 int sz = sizeof(Image) + -- cgit v1.2.3-70-g09d2