summaryrefslogtreecommitdiff
path: root/src/compoundsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r--src/compoundsprite.cpp9
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;
}