From 15b78c6b8a1ae17664de0a40dc43aac7645397f0 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 10 Apr 2011 15:50:38 -0600 Subject: Disable sprite caching for now MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Thorbjørn Lindeijer --- src/compoundsprite.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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()) { -- cgit v1.2.3-70-g09d2