X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Fcolor.c;h=358911e155941cbb637f27f975e3e45e62f5230a;hb=3fcba81510c98ac517afbab0ba60ced3d30f202f;hp=5fdce39148b9f7722cd0c1ba02e192a9863bca6d;hpb=ac9d8c58cb2286a98f699fe1b98b56e11c262868;p=chaz%2Fopenbox diff --git a/render/color.c b/render/color.c index 5fdce391..358911e1 100644 --- a/render/color.c +++ b/render/color.c @@ -65,8 +65,6 @@ RrColor *RrColorNew(const RrInstance *inst, gint r, gint g, gint b) return out; } -/*XXX same color could be pointed to twice, this might have to be a refcount*/ - void RrColorFree(RrColor *c) { if (c) { @@ -274,8 +272,7 @@ 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? */ +GC RrColorGC(RrColor *c) { if (!c->gc) RrColorAllocateGC(c);