summaryrefslogtreecommitdiff
path: root/src/compoundsprite.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/compoundsprite.cpp
parentb661524e8b7b41cec237492ecd52fdda7b9be394 (diff)
downloadmanaverse-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.gz
manaverse-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.bz2
manaverse-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.xz
manaverse-929aeb1591e739588cd8cf629e7d7ac5a95261b1.zip
add surface allocation debug code.
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r--src/compoundsprite.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp
index e89e1154b..df62ab9ff 100644
--- a/src/compoundsprite.cpp
+++ b/src/compoundsprite.cpp
@@ -327,7 +327,7 @@ void CompoundSprite::redraw() const
const int amask = 0xff000000;
#endif
- SDL_Surface *const surface = SDL_CreateRGBSurface(SDL_HWSURFACE,
+ SDL_Surface *const surface = MSDL_CreateRGBSurface(SDL_HWSURFACE,
BUFFER_WIDTH, BUFFER_HEIGHT, 32, rmask, gmask, bmask, amask);
if (!surface)
@@ -363,7 +363,7 @@ void CompoundSprite::redraw() const
delete graphics;
graphics = nullptr;
- SDL_Surface *const surfaceA = SDL_CreateRGBSurface(SDL_HWSURFACE,
+ SDL_Surface *const surfaceA = MSDL_CreateRGBSurface(SDL_HWSURFACE,
BUFFER_WIDTH, BUFFER_HEIGHT, 32, rmask, gmask, bmask, amask);
#ifdef USE_SDL2
@@ -377,12 +377,12 @@ void CompoundSprite::redraw() const
delete mAlphaImage;
mImage = imageHelper->load(surface);
- SDL_FreeSurface(surface);
+ MSDL_FreeSurface(surface);
if (ImageHelper::mEnableAlpha)
{
mAlphaImage = imageHelper->load(surfaceA);
- SDL_FreeSurface(surfaceA);
+ MSDL_FreeSurface(surfaceA);
}
else
{