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:
02045b1
)
add RrColorGC
author
Dana Jansens
<danakj@orodu.net>
Sun, 31 Aug 2003 17:01:53 +0000
(17:01 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 31 Aug 2003 17:01:53 +0000
(17:01 +0000)
render/color.c
patch
|
blob
|
history
diff --git
a/render/color.c
b/render/color.c
index 37ef5532dd952b63cc8872e24ea611d2fc5af2b8..f791b9c48582a16d2fe5581c9d9e9a5603824603 100644
(file)
--- a/
render/color.c
+++ b/
render/color.c
@@
-259,3
+259,11
@@
gulong RrColorPixel(const RrColor *c)
{
return c->pixel;
}
+
+GC RrColorGC(RrColor *c) /* XXX make this const RrColor* when the GCs are in
+ a cache.. if possible? */
+{
+ if (!c->gc)
+ RrColorAllocateGC(c);
+ return c->gc;
+}