From 58be655de321369ceec5819a3516003a05ead575 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 10 Jul 2003 04:31:34 +0000 Subject: remove rependancy on geom.h from the kernel, provide what is used in its own geom.h --- render/color.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'render/color.c') diff --git a/render/color.c b/render/color.c index 46f81161..dfdd092c 100644 --- a/render/color.c +++ b/render/color.c @@ -242,3 +242,23 @@ void RrIncreaseDepth(const RrInstance *inst, RrPixel32 *data, XImage *im) g_message("this image bit depth is currently unhandled\n"); } } + +int RrColorRed(const RrColor *c) +{ + return c->r; +} + +int RrColorGreen(const RrColor *c) +{ + return c->g; +} + +int RrColorBlue(const RrColor *c) +{ + return c->b; +} + +gulong RrColorPixel(const RrColor *c) +{ + return c->pixel; +} -- cgit v1.2.3