save/load the pixel in the cache
This commit is contained in:
parent
3fe7bded58
commit
1b5d52c716
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue