summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--otk/rendercolor.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/otk/rendercolor.hh b/otk/rendercolor.hh
index 4eeb8158..c5835385 100644
--- a/otk/rendercolor.hh
+++ b/otk/rendercolor.hh
@@ -27,8 +27,9 @@ public:
private:
struct CacheItem {
GC gc;
+ unsigned long pixel;
int count;
- CacheItem(GC g) : gc(g), count(0) {}
+ CacheItem(GC g, unsigned long p) : gc(g), pixel(p), count(0) {}
};
static std::map<unsigned long, CacheItem*> *_cache;