all repos — openbox @ f90167d8b5d8bd082fb961590375c8607eaec8e0

openbox fork - make it a bit more like ryudo

add RrColorGC
Dana Jansens danakj@orodu.net
commit

f90167d8b5d8bd082fb961590375c8607eaec8e0

parent

02045b14d62bca513bd81d11ca1ae8623edda105

1 files changed, 8 insertions(+), 0 deletions(-)

jump to
M render/color.crender/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; +}