summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb.c b/fb.c
index 64d2915..4a6a7d2 100644
--- a/fb.c
+++ b/fb.c
@@ -114,7 +114,7 @@ rasterconvF2C(Raster *dst, Raster *src)
continue;
}
b = (*f++ - min)/max * 0xFF;
- *c++ = (b * 0x00010101)<<8 | 0xFF;
+ *c++ = (b * 0x01010100) | 0xFF;
}
}