diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-21 02:30:14 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-21 02:30:14 +0000 |
| commit | 33ec08ea2253a1692cac221f49dadda339371f66 (patch) | |
| tree | 0b634dfc238697f33b5ddb08cfe147be7a828a38 /render/color.c | |
| parent | ae9aed85452093b7932b9c4c86506b4599c54d68 (diff) | |
more namespacing with Rr*
Diffstat (limited to 'render/color.c')
| -rw-r--r-- | render/color.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/render/color.c b/render/color.c index ee4ee30e..564fb7cf 100644 --- a/render/color.c +++ b/render/color.c @@ -7,7 +7,7 @@ XColor *pseudo_colors; int pseudo_bpc; -void color_allocate_gc(RrColor *in) +void RrColorAllocateGC(RrColor *in) { XGCValues gcv; @@ -66,7 +66,7 @@ void RrColorFree(RrColor *c) } } -void reduce_depth(const RrInstance *inst, RrPixel32 *data, XImage *im) +void RrReduceDepth(const RrInstance *inst, RrPixel32 *data, XImage *im) { int r, g, b; int x,y; @@ -113,10 +113,10 @@ void reduce_depth(const RrInstance *inst, RrPixel32 *data, XImage *im) g_assert(RrVisual(inst)->class != TrueColor); for (y = 0; y < im->height; y++) { for (x = 0; x < im->width; x++) { - p8[x] = pickColor(inst, - data[x] >> RrDefaultRedOffset, - data[x] >> RrDefaultGreenOffset, - data[x] >> RrDefaultBlueOffset)->pixel; + p8[x] = RrPickColor(inst, + data[x] >> RrDefaultRedOffset, + data[x] >> RrDefaultGreenOffset, + data[x] >> RrDefaultBlueOffset)->pixel; } data += im->width; p8 += im->bytes_per_line; @@ -128,7 +128,7 @@ void reduce_depth(const RrInstance *inst, RrPixel32 *data, XImage *im) } } -XColor *pickColor(const RrInstance *inst, gint r, gint g, gint b) +XColor *RrPickColor(const RrInstance *inst, gint r, gint g, gint b) { r = (r & 0xff) >> (8-pseudo_bpc); g = (g & 0xff) >> (8-pseudo_bpc); @@ -174,7 +174,7 @@ static void swap_byte_order(XImage *im) im->byte_order = LSBFirst; } -void increase_depth(const RrInstance *inst, RrPixel32 *data, XImage *im) +void RrIncreaseDepth(const RrInstance *inst, RrPixel32 *data, XImage *im) { int r, g, b; int x,y; |
