aboutsummaryrefslogtreecommitdiffstats
path: root/libng/color_lut.c
diff options
context:
space:
mode:
Diffstat (limited to 'libng/color_lut.c')
-rw-r--r--libng/color_lut.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libng/color_lut.c b/libng/color_lut.c
index dc0318c..e9bc3d9 100644
--- a/libng/color_lut.c
+++ b/libng/color_lut.c
@@ -264,7 +264,7 @@ ng_lut_init(unsigned long red_mask, unsigned long green_mask,
lut_blue[i] = (i >> (8 - rgb_blue_bits)) << rgb_blue_shift;
switch (ng_vfmt_to_depth[fmtid]) {
- case 2:
+ case 16:
if (swap) {
for (i = 0; i < 256; i++) {
lut_red[i] = SWAP2(lut_red[i]);
@@ -276,7 +276,7 @@ ng_lut_init(unsigned long red_mask, unsigned long green_mask,
lut2_list[i].fmtid_out = fmtid;
ng_conv_register(lut2_list,nconv2);
break;
- case 4:
+ case 32:
if (swap) {
for (i = 0; i < 256; i++) {
lut_red[i] = SWAP4(lut_red[i]);

Privacy Policy