From f90167d8b5d8bd082fb961590375c8607eaec8e0 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 31 Aug 2003 17:01:53 +0000 Subject: [PATCH] add RrColorGC --- render/color.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/render/color.c b/render/color.c index 37ef5532..f791b9c4 100644 --- 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; +} -- 2.39.2