shithub: qk1

Download patch

ref: 1a81744f88e857627f74971e8709333cc9917a78
parent: a5b441d0296071fa3b3eb6a3e7501e781da9cb4d
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Sun Dec 17 19:07:07 EST 2023

addlight: leave dest color attributes

--- a/r_surf.c
+++ b/r_surf.c
@@ -293,7 +293,7 @@
 	r = (r * ((64<<8)-(lr & 0xffff))) >> (8+VID_CBITS);
 	g = (g * ((64<<8)-(lg & 0xffff))) >> (8+VID_CBITS);
 	b = (b * ((64<<8)-(lb & 0xffff))) >> (8+VID_CBITS);
-	x = r<<16 | g<<8 | b<<0;
+	x = (x & 0xff000000) | r<<16 | g<<8 | b<<0;
 
 	return x;
 }