add RrColorGC
This commit is contained in:
parent
02045b14d6
commit
f90167d8b5
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue