From 91dfb6853d7b6d7ae49f54488b89e0eb73b5ff01 Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 3 Oct 2024 09:28:18 +0000 Subject: fb: unnecessary shift. --- fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3