shithub: libgraphics

Download patch

ref: 91dfb6853d7b6d7ae49f54488b89e0eb73b5ff01
parent: 0abc1ca44de64a689f5877e4b7e194c43a1ddcd8
author: rodri <rgl@antares-labs.eu>
date: Thu Oct 3 05:28:18 EDT 2024

fb: unnecessary shift.

--- a/fb.c
+++ b/fb.c
@@ -114,7 +114,7 @@
 			continue;
 		}
 		b = (*f++ - min)/max * 0xFF;
-		*c++ = (b * 0x00010101)<<8 | 0xFF;
+		*c++ = (b * 0x01010100) | 0xFF;
 	}
 }