From 929aeb1591e739588cd8cf629e7d7ac5a95261b1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 26 Aug 2013 16:09:58 +0300 Subject: add surface allocation debug code. --- src/compoundsprite.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/compoundsprite.cpp') 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 { -- cgit v1.2.3-60-g2f50