diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-03-27 21:34:55 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-03-27 21:34:55 +0000 |
commit | ca7ef937ff94e50288ae98ce8d3937d89c39a265 (patch) | |
tree | 547acaeefa486deb276958c9d9231982b402305d /desktop | |
parent | f0dbe1d689edbb61c6dd9933ab1cfb61e10b336c (diff) | |
download | netsurf-ca7ef937ff94e50288ae98ce8d3937d89c39a265.tar.gz netsurf-ca7ef937ff94e50288ae98ce8d3937d89c39a265.tar.bz2 |
Clean up blend_colour macro.
svn path=/trunk/netsurf/; revision=13753
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/plot_style.h | 6 |
1 files 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) \ |