From 42fbe726d4433a6a46ce1555f1d208d2971438e3 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 22 Jan 2003 23:16:58 +0000 Subject: [PATCH] add the pixel to the cache --- otk/rendercolor.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 *_cache; -- 2.39.2