]> Dogcows Code - chaz/openbox/commitdiff
save/load the pixel in the cache
authorDana Jansens <danakj@orodu.net>
Wed, 22 Jan 2003 23:16:49 +0000 (23:16 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 22 Jan 2003 23:16:49 +0000 (23:16 +0000)
otk/rendercolor.cc

index eb3ffdbc3e3cf3957621ec3fa1501a9df360d5aa..36f941c6734d220285407c9423135ac5f8d4f0a8 100644 (file)
@@ -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;
   }
This page took 0.025026 seconds and 4 git commands to generate.