From ca7ef937ff94e50288ae98ce8d3937d89c39a265 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 27 Mar 2012 21:34:55 +0000 Subject: Clean up blend_colour macro. svn path=/trunk/netsurf/; revision=13753 --- desktop/plot_style.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/plot_style.h b/desktop/plot_style.h index db3f69eb9..f0cd35420 100644 --- a/desktop/plot_style.h +++ b/desktop/plot_style.h @@ -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) \ -- cgit v1.2.3