summaryrefslogtreecommitdiff
path: root/src/compoundsprite.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2011-04-10 15:50:38 -0600
committerJared Adams <jaxad0127@gmail.com>2011-04-11 09:59:40 -0600
commit15b78c6b8a1ae17664de0a40dc43aac7645397f0 (patch)
treea05d4f791c0ac5816007a1ecc9c66ec8ca176826 /src/compoundsprite.cpp
parentd5f7c6029199ab514cd1ae9a69abfc8b506bdc8c (diff)
downloadmana-client-15b78c6b8a1ae17664de0a40dc43aac7645397f0.tar.gz
mana-client-15b78c6b8a1ae17664de0a40dc43aac7645397f0.tar.bz2
mana-client-15b78c6b8a1ae17664de0a40dc43aac7645397f0.tar.xz
mana-client-15b78c6b8a1ae17664de0a40dc43aac7645397f0.zip
Disable sprite caching for now
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r--src/compoundsprite.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp
index ec45825f..e88a518a 100644
--- a/src/compoundsprite.cpp
+++ b/src/compoundsprite.cpp
@@ -285,6 +285,11 @@ size_t CompoundSprite::getFrameCount(size_t layer)
void CompoundSprite::redraw() const
{
+ // TODO Detect image size needed to avoid cutting off large sprites, and
+ // reduce memory for smaller ones
+ mNeedsRedraw = false;
+ return;
+
// TODO OpenGL support
if (Image::getLoadAsOpenGL())
{