From 1ac796e8e03fe406b314e36a4873cc7faf821e25 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 3 Jan 2004 01:12:10 +0000 Subject: check texture type too, it could be tiled --- src/FbTk/ImageControl.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/FbTk/ImageControl.cc b/src/FbTk/ImageControl.cc index a09b32f..0cb7fbe 100644 --- a/src/FbTk/ImageControl.cc +++ b/src/FbTk/ImageControl.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ImageControl.cc,v 1.9 2004/01/02 22:54:29 fluxgen Exp $ +// $Id: ImageControl.cc,v 1.10 2004/01/03 01:12:10 fluxgen Exp $ #include "ImageControl.hh" @@ -158,7 +158,8 @@ Pixmap ImageControl::searchCache(unsigned int width, unsigned int height, CacheList::iterator it_end = cache.end(); for (; it != it_end; ++it) { if ((*it)->texture_pixmap == text.pixmap().drawable() && - (*it)->width == width && (*it)->height == height) { + (*it)->width == width && (*it)->height == height && + (*it)->texture == text.type()) { (*it)->count++; return (*it)->pixmap; } -- cgit v0.11.2