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/sdlgraphics.cpp | |
parent | b661524e8b7b41cec237492ecd52fdda7b9be394 (diff) | |
download | plus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.gz plus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.bz2 plus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.xz plus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.zip |
add surface allocation debug code.
Diffstat (limited to 'src/sdlgraphics.cpp')
-rw-r--r-- | src/sdlgraphics.cpp | 4 |
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) |