summaryrefslogtreecommitdiff
path: root/desktop/plot_style.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-07-07 18:08:17 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-07-07 18:08:17 +0000
commit5bebf2f2fc27a31c8b2efa7a837baef63c1b0a97 (patch)
tree65d353a907c3496eb638bbff780ff4d0f1437313 /desktop/plot_style.h
parentf6faa20a37f38643d505ba41baa8a88e3dfa545a (diff)
downloadnetsurf-5bebf2f2fc27a31c8b2efa7a837baef63c1b0a97.tar.gz
netsurf-5bebf2f2fc27a31c8b2efa7a837baef63c1b0a97.tar.bz2
Merge branches/vince/netsurf-fbtk-rework to trunk.
svn path=/trunk/netsurf/; revision=10605
Diffstat (limited to 'desktop/plot_style.h')
-rw-r--r--desktop/plot_style.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/plot_style.h b/desktop/plot_style.h
index a3b3f0103..1271e138b 100644
--- a/desktop/plot_style.h
+++ b/desktop/plot_style.h
@@ -31,13 +31,13 @@
/* Darken a colour by taking three quarters of each channel's intensity */
#define darken_colour(c1) \
- ((((3 * (c1 >> 16)) >> 2) << 16) | \
+ ((((3 * ((c1 >> 16) & 0xff)) >> 2) << 16) | \
(((3 * ((c1 >> 8) & 0xff)) >> 2) << 8) | \
(((3 * (c1 & 0xff)) >> 2) << 0))
/* Darken a colour by taking nine sixteenths of each channel's intensity */
#define double_darken_colour(c1) \
- ((((9 * (c1 >> 16)) >> 4) << 16) | \
+ ((((9 * ((c1 >> 16) & 0xff)) >> 4) << 16) | \
(((9 * ((c1 >> 8) & 0xff)) >> 4) << 8) | \
(((9 * (c1 & 0xff)) >> 4) << 0))