all repos — fluxbox @ 0132b31f4e1036902f4c880d30ce573dddd3f1b9

custom fork of the fluxbox windowmanager

fixed bug in textured cache
fluxgen fluxgen
commit

0132b31f4e1036902f4c880d30ce573dddd3f1b9

parent

a5be2ef67d91f2cba7551e3a52a6b989c87e8611

1 files changed, 5 insertions(+), 3 deletions(-)

jump to
M src/FbTk/ImageControl.ccsrc/FbTk/ImageControl.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ImageControl.cc,v 1.8 2004/01/02 22:19:39 fluxgen Exp $ +// $Id: ImageControl.cc,v 1.9 2004/01/02 22:54:29 fluxgen Exp $ #include "ImageControl.hh"

@@ -157,9 +157,11 @@ // do comparsion with width/height and texture_pixmap

CacheList::iterator it = cache.begin(); CacheList::iterator it_end = cache.end(); for (; it != it_end; ++it) { - if ((*it)->texture_pixmap = text.pixmap().drawable() && - (*it)->width == width && (*it)->height == height) + if ((*it)->texture_pixmap == text.pixmap().drawable() && + (*it)->width == width && (*it)->height == height) { + (*it)->count++; return (*it)->pixmap; + } } return None; }