diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-21 02:38:47 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-21 02:38:47 +0000 |
| commit | 16066ed282bbc70aa3cefa81a674a8c6e8fe69b8 (patch) | |
| tree | a7a1529f15fc0007f226e367adcf73c186cd37f2 /render | |
| parent | 768c3cd4a9fba291e49f4706829d2021d0952aa8 (diff) | |
use the pseudo shit in the instance now
Diffstat (limited to 'render')
| -rw-r--r-- | render/color.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/render/color.c b/render/color.c index 564fb7cf..b4856853 100644 --- a/render/color.c +++ b/render/color.c @@ -4,9 +4,6 @@ #include "render.h" #include "color.h" -XColor *pseudo_colors; -int pseudo_bpc; - void RrColorAllocateGC(RrColor *in) { XGCValues gcv; @@ -130,11 +127,11 @@ void RrReduceDepth(const RrInstance *inst, RrPixel32 *data, XImage *im) XColor *RrPickColor(const RrInstance *inst, gint r, gint g, gint b) { - r = (r & 0xff) >> (8-pseudo_bpc); - g = (g & 0xff) >> (8-pseudo_bpc); - b = (b & 0xff) >> (8-pseudo_bpc); - return &RrPseudoColors(inst)[(r << (2*pseudo_bpc)) + - (g << (1*pseudo_bpc)) + + r = (r & 0xff) >> (8-RrPseudoBPC(inst)); + g = (g & 0xff) >> (8-RrPseudoBPC(inst)); + b = (b & 0xff) >> (8-RrPseudoBPC(inst)); + return &RrPseudoColors(inst)[(r << (2*RrPseudoBPC(inst))) + + (g << (1*RrPseudoBPC(inst))) + b]; } |
