summaryrefslogtreecommitdiff
path: root/render/color.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-10 04:31:34 +0000
committerDana Jansens <danakj@orodu.net>2003-07-10 04:31:34 +0000
commit58be655de321369ceec5819a3516003a05ead575 (patch)
tree0d698ccd1a8e0d23ff081662fe9ee6fd3f637e7a /render/color.c
parent2abbf01125731caf99490eca58db6debce717947 (diff)
remove rependancy on geom.h from the kernel, provide what is used in its own geom.h
Diffstat (limited to 'render/color.c')
-rw-r--r--render/color.c20
1 files changed, 20 insertions, 0 deletions
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;
+}