save/load the pixel in the cache

This commit is contained in:
Dana Jansens 2003-01-22 23:16:49 +00:00
parent 3fe7bded58
commit 1b5d52c716

View file

@ -54,6 +54,7 @@ void RenderColor::create()
if (item) { if (item) {
_gc = item->gc; _gc = item->gc;
_pixel = item->pixel;
++item->count; ++item->count;
} else { } else {
XGCValues gcv; XGCValues gcv;
@ -81,7 +82,7 @@ void RenderColor::create()
assert(_gc); assert(_gc);
// insert into the cache // insert into the cache
item = new CacheItem(_gc); item = new CacheItem(_gc, _pixel);
_cache[_screen][color] = item; _cache[_screen][color] = item;
++item->count; ++item->count;
} }