add the pixel to the cache
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
otk/rendercolor.hh
→
otk/rendercolor.hh
@@ -27,8 +27,9 @@
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;