projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b5d52c
)
add the pixel to the cache
author
Dana Jansens
<danakj@orodu.net>
Wed, 22 Jan 2003 23:16:58 +0000
(23:16 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 22 Jan 2003 23:16:58 +0000
(23:16 +0000)
otk/rendercolor.hh
patch
|
blob
|
history
diff --git
a/otk/rendercolor.hh
b/otk/rendercolor.hh
index 4eeb8158a0d20c0bade832f73c5d6011ef9e3510..c5835385ddcb8465f7cfaec14c59784090a16ee6 100644
(file)
--- 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;