summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-22 23:16:58 +0000
committerDana Jansens <danakj@orodu.net>2003-01-22 23:16:58 +0000
commit42fbe726d4433a6a46ce1555f1d208d2971438e3 (patch)
treea37b02f45277bfe2706662dc8b266774e9747f84
parent1b5d52c71669ad1837437deaadc061d8d7cfdd85 (diff)
add the pixel to the cache
-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;