summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-10-03 09:28:18 +0000
committerrodri <rgl@antares-labs.eu>2024-10-03 09:28:18 +0000
commit91dfb6853d7b6d7ae49f54488b89e0eb73b5ff01 (patch)
tree2e9e74bcb7fd1eb7a800eda1f2b88b3c489359c8
parent0abc1ca44de64a689f5877e4b7e194c43a1ddcd8 (diff)
downloadlibgraphics-91dfb6853d7b6d7ae49f54488b89e0eb73b5ff01.tar.gz
libgraphics-91dfb6853d7b6d7ae49f54488b89e0eb73b5ff01.tar.bz2
libgraphics-91dfb6853d7b6d7ae49f54488b89e0eb73b5ff01.zip
fb: unnecessary shift.
-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;
}
}