summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/plot_style.h6
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) \