]> Dogcows Code - chaz/openbox/commitdiff
add RrColorGC
authorDana Jansens <danakj@orodu.net>
Sun, 31 Aug 2003 17:01:53 +0000 (17:01 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 31 Aug 2003 17:01:53 +0000 (17:01 +0000)
render/color.c

index 37ef5532dd952b63cc8872e24ea611d2fc5af2b8..f791b9c48582a16d2fe5581c9d9e9a5603824603 100644 (file)
@@ -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;
+}
This page took 0.024834 seconds and 4 git commands to generate.