used RrColorShift when RrColorOffset was what we wanted
This commit is contained in:
parent
3bca76453f
commit
41d72ee51f
1 changed files with 3 additions and 3 deletions
|
@ -80,9 +80,9 @@ void RrReduceDepth(const RrInstance *inst, RrPixel32 *data, XImage *im)
|
||||||
r = (data[x] >> RrDefaultRedOffset) & 0xFF;
|
r = (data[x] >> RrDefaultRedOffset) & 0xFF;
|
||||||
g = (data[x] >> RrDefaultGreenOffset) & 0xFF;
|
g = (data[x] >> RrDefaultGreenOffset) & 0xFF;
|
||||||
b = (data[x] >> RrDefaultBlueOffset) & 0xFF;
|
b = (data[x] >> RrDefaultBlueOffset) & 0xFF;
|
||||||
p32[x] = (r << RrRedShift(inst))
|
p32[x] = (r << RrRedOffset(inst))
|
||||||
+ (g << RrGreenShift(inst))
|
+ (g << RrGreenOffset(inst))
|
||||||
+ (b << RrBlueShift(inst));
|
+ (b << RrBlueOffset(inst));
|
||||||
}
|
}
|
||||||
data += im->width;
|
data += im->width;
|
||||||
p32 += im->width;
|
p32 += im->width;
|
||||||
|
|
Loading…
Reference in a new issue