summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/ImageControl.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/FbTk/ImageControl.cc b/src/FbTk/ImageControl.cc
index 977d899..a09b32f 100644
--- a/src/FbTk/ImageControl.cc
+++ b/src/FbTk/ImageControl.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: ImageControl.cc,v 1.8 2004/01/02 22:19:39 fluxgen Exp $ 25// $Id: ImageControl.cc,v 1.9 2004/01/02 22:54:29 fluxgen Exp $
26 26
27#include "ImageControl.hh" 27#include "ImageControl.hh"
28 28
@@ -157,9 +157,11 @@ Pixmap ImageControl::searchCache(unsigned int width, unsigned int height,
157 CacheList::iterator it = cache.begin(); 157 CacheList::iterator it = cache.begin();
158 CacheList::iterator it_end = cache.end(); 158 CacheList::iterator it_end = cache.end();
159 for (; it != it_end; ++it) { 159 for (; it != it_end; ++it) {
160 if ((*it)->texture_pixmap = text.pixmap().drawable() && 160 if ((*it)->texture_pixmap == text.pixmap().drawable() &&
161 (*it)->width == width && (*it)->height == height) 161 (*it)->width == width && (*it)->height == height) {
162 (*it)->count++;
162 return (*it)->pixmap; 163 return (*it)->pixmap;
164 }
163 } 165 }
164 return None; 166 return None;
165 } 167 }