summaryrefslogtreecommitdiff
path: root/src/sdlgraphics.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/sdlgraphics.cpp
parentb661524e8b7b41cec237492ecd52fdda7b9be394 (diff)
downloadmv-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.gz
mv-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.bz2
mv-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.xz
mv-929aeb1591e739588cd8cf629e7d7ac5a95261b1.zip
add surface allocation debug code.
Diffstat (limited to 'src/sdlgraphics.cpp')
-rw-r--r--src/sdlgraphics.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sdlgraphics.cpp b/src/sdlgraphics.cpp
index f62bca7c8..70713e1be 100644
--- a/src/sdlgraphics.cpp
+++ b/src/sdlgraphics.cpp
@@ -33,6 +33,8 @@
#include "resources/imagehelper.h"
+#include "utils/sdlcheckutils.h"
+
#include <guichan/sdl/sdlpixel.hpp>
#include <SDL_gfxBlitFunc.h>
@@ -418,7 +420,7 @@ SDL_Surface *SDLGraphics::getScreenshot()
#endif
const int amask = 0x00000000;
- SDL_Surface *const screenshot = SDL_CreateRGBSurface(SDL_SWSURFACE,
+ SDL_Surface *const screenshot = MSDL_CreateRGBSurface(SDL_SWSURFACE,
mRect.w, mRect.h, 24, rmask, gmask, bmask, amask);
if (screenshot)