add the pixel to the cache

This commit is contained in:
Dana Jansens 2003-01-22 23:16:58 +00:00
parent 1b5d52c716
commit 42fbe726d4

View file

@ -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;