summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-26 16:09:58 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-26 16:52:08 +0300
commit929aeb1591e739588cd8cf629e7d7ac5a95261b1 (patch)
tree2b61b477d0e0ffed31a90ba2d6c019da926282aa /src/client.cpp
parentb661524e8b7b41cec237492ecd52fdda7b9be394 (diff)
downloadmanaplus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.gz
manaplus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.bz2
manaplus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.xz
manaplus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.zip
add surface allocation debug code.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
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