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) {
|
||||
_gc = item->gc;
|
||||
_pixel = item->pixel;
|
||||
++item->count;
|
||||
} else {
|
||||
XGCValues gcv;
|
||||
|
@ -81,7 +82,7 @@ void RenderColor::create()
|
|||
assert(_gc);
|
||||
|
||||
// insert into the cache
|
||||
item = new CacheItem(_gc);
|
||||
item = new CacheItem(_gc, _pixel);
|
||||
_cache[_screen][color] = item;
|
||||
++item->count;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue