From: Dana Jansens Date: Wed, 22 Jan 2003 23:16:49 +0000 (+0000) Subject: save/load the pixel in the cache X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=1b5d52c71669ad1837437deaadc061d8d7cfdd85;p=chaz%2Fopenbox save/load the pixel in the cache --- 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; }