add the pixel to the cache
This commit is contained in:
parent
1b5d52c716
commit
42fbe726d4
1 changed files with 2 additions and 1 deletions
|
@ -27,8 +27,9 @@ public:
|
||||||
private:
|
private:
|
||||||
struct CacheItem {
|
struct CacheItem {
|
||||||
GC gc;
|
GC gc;
|
||||||
|
unsigned long pixel;
|
||||||
int count;
|
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;
|
static std::map<unsigned long, CacheItem*> *_cache;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue