diff options
author | fluxgen <fluxgen> | 2004-01-02 22:54:29 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2004-01-02 22:54:29 (GMT) |
commit | 0132b31f4e1036902f4c880d30ce573dddd3f1b9 (patch) | |
tree | b81d06931133668ea084a6c0a33dde0954fc3d9f | |
parent | a5be2ef67d91f2cba7551e3a52a6b989c87e8611 (diff) | |
download | fluxbox_pavel-0132b31f4e1036902f4c880d30ce573dddd3f1b9.zip fluxbox_pavel-0132b31f4e1036902f4c880d30ce573dddd3f1b9.tar.bz2 |
fixed bug in textured cache
-rw-r--r-- | src/FbTk/ImageControl.cc | 8 |
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 | } |