From: Dana Jansens Date: Sat, 5 Jul 2003 16:51:29 +0000 (+0000) Subject: used RrColorShift when RrColorOffset was what we wanted X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=41d72ee51f34731f7b994786a4ae9b75256fc27a;p=chaz%2Fopenbox used RrColorShift when RrColorOffset was what we wanted --- diff --git a/render/color.c b/render/color.c index b4856853..3e846d08 100644 --- a/render/color.c +++ b/render/color.c @@ -80,9 +80,9 @@ void RrReduceDepth(const RrInstance *inst, RrPixel32 *data, XImage *im) r = (data[x] >> RrDefaultRedOffset) & 0xFF; g = (data[x] >> RrDefaultGreenOffset) & 0xFF; b = (data[x] >> RrDefaultBlueOffset) & 0xFF; - p32[x] = (r << RrRedShift(inst)) - + (g << RrGreenShift(inst)) - + (b << RrBlueShift(inst)); + p32[x] = (r << RrRedOffset(inst)) + + (g << RrGreenOffset(inst)) + + (b << RrBlueOffset(inst)); } data += im->width; p32 += im->width;