diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-26 16:09:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-26 16:52:08 +0300 |
commit | 929aeb1591e739588cd8cf629e7d7ac5a95261b1 (patch) | |
tree | 2b61b477d0e0ffed31a90ba2d6c019da926282aa /src/client.cpp | |
parent | b661524e8b7b41cec237492ecd52fdda7b9be394 (diff) | |
download | mv-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.gz mv-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.bz2 mv-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.xz mv-929aeb1591e739588cd8cf629e7d7ac5a95261b1.zip |
add surface allocation debug code.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index c98dfeb82..fef6f98ed 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -106,6 +106,7 @@ #include "utils/paths.h" #include "utils/physfstools.h" #include "utils/process.h" +#include "utils/sdlcheckutils.h" #include "utils/sdlhelper.h" #include "utils/translation/translationmanager.h" @@ -833,7 +834,7 @@ void Client::gameClear() if (logger) logger->log1("Quitting8"); - SDL_FreeSurface(mIcon); + MSDL_FreeSurface(mIcon); if (logger) logger->log1("Quitting9"); @@ -3078,7 +3079,7 @@ void Client::setIcon() if (icon) SetClassLong(pInfo.window, GCL_HICON, reinterpret_cast<LONG>(icon)); #else - mIcon = IMG_Load(iconFile.c_str()); + mIcon = MIMG_Load(iconFile.c_str()); if (mIcon) { #ifdef USE_SDL2 |