diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-26 01:27:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-26 01:27:16 +0300 |
commit | b661524e8b7b41cec237492ecd52fdda7b9be394 (patch) | |
tree | 94bb6290dcb5cdc0f63747f4b97f1b5714175971 /src/compoundsprite.cpp | |
parent | 6f8da91cf4af4057ae4d2b9a2e2cd654e54d2d2c (diff) | |
download | manaplus-b661524e8b7b41cec237492ecd52fdda7b9be394.tar.gz manaplus-b661524e8b7b41cec237492ecd52fdda7b9be394.tar.bz2 manaplus-b661524e8b7b41cec237492ecd52fdda7b9be394.tar.xz manaplus-b661524e8b7b41cec237492ecd52fdda7b9be394.zip |
Disable being caching in soft mode in SDL2.
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r-- | src/compoundsprite.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp index 6e8d47373..e89e1154b 100644 --- a/src/compoundsprite.cpp +++ b/src/compoundsprite.cpp @@ -313,10 +313,7 @@ unsigned int CompoundSprite::getFrameCount(unsigned int layer) void CompoundSprite::redraw() const { -#ifdef USE_SDL2 - // +++ need impliment after - return; -#else +#ifndef USE_SDL2 #if SDL_BYTEORDER == SDL_BIG_ENDIAN const int rmask = 0xff000000; @@ -417,6 +414,7 @@ void CompoundSprite::setAlpha(float alpha) void CompoundSprite::updateImages() const { +#ifndef USE_SDL2 #ifdef USE_OPENGL if (imageHelper->useOpenGL()) return; @@ -450,10 +448,12 @@ void CompoundSprite::updateImages() const redraw(); } } +#endif } bool CompoundSprite::updateFromCache() const { +#ifndef USE_SDL2 // static int hits = 0; // static int miss = 0; @@ -516,6 +516,7 @@ bool CompoundSprite::updateFromCache() const mImage = nullptr; mAlphaImage = nullptr; // miss++; +#endif return false; } |