]> Dogcows Code - chaz/openbox/commitdiff
used RrColorShift when RrColorOffset was what we wanted
authorDana Jansens <danakj@orodu.net>
Sat, 5 Jul 2003 16:51:29 +0000 (16:51 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 5 Jul 2003 16:51:29 +0000 (16:51 +0000)
render/color.c

index b485685379c390c427b3900dcadaaf6af2ffaa85..3e846d080dfa20e7c368366273dd32cb554c3662 100644 (file)
@@ -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;
This page took 0.02314 seconds and 4 git commands to generate.