X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Fcolor.c;h=dfdd092c56062046206835eb53ce84bd46717c36;hb=35418ca0fcd3fd28ef579f4435b8bad3b7c87f04;hp=46f81161e1defaf86e43602538e1a0c13757ccaa;hpb=ce940eee0ff94403e2093dcce3866a764c6a75e7;p=chaz%2Fopenbox 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; +}