summaryrefslogtreecommitdiff
path: root/otk
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-22 23:16:49 +0000
committerDana Jansens <danakj@orodu.net>2003-01-22 23:16:49 +0000
commit1b5d52c71669ad1837437deaadc061d8d7cfdd85 (patch)
tree0626a9e1996505a6ffab5258b52cbe5ba53dca2d /otk
parent3fe7bded58fb82fd2c1c2a5f9ad2e8f453fa0609 (diff)
save/load the pixel in the cache
Diffstat (limited to 'otk')
-rw-r--r--otk/rendercolor.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/otk/rendercolor.cc b/otk/rendercolor.cc
index eb3ffdbc..36f941c6 100644
--- a/otk/rendercolor.cc
+++ b/otk/rendercolor.cc
@@ -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;
}