mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-24 02:14:11 +03:00
Clean up blend_colour macro.
svn path=/trunk/netsurf/; revision=13753
This commit is contained in:
parent
f0dbe1d689
commit
ca7ef937ff
@ -60,9 +60,9 @@
|
||||
* colour and adding them to half the intensity of each channel in the second
|
||||
* colour */
|
||||
#define blend_colour(c0, c1) \
|
||||
((((c0 >> 16) + (c1 >> 16)) >> 1) << 16) | \
|
||||
(((((c0 >> 8) & 0xff) + ((c1 >> 8) & 0xff)) >> 1) << 8) | \
|
||||
((((c0 & 0xff) + (c1 & 0xff)) >> 1) << 0)
|
||||
(((((c0 >> 16) & 0xff) + ((c1 >> 16) & 0xff)) >> 1) << 16) | \
|
||||
(((((c0 >> 8) & 0xff) + ((c1 >> 8) & 0xff)) >> 1) << 8) | \
|
||||
(((( c0 & 0xff) + ( c1 & 0xff)) >> 1) << 0)
|
||||
|
||||
/* get a bitmap pixel (image/bitmap.h) into a plot colour */
|
||||
#define pixel_to_colour(b) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user