diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2009-09-18 23:23:32 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2009-09-18 23:29:41 +0200 |
commit | b7a50a6f00bb6d207f5240f00cf83fbbd56bbf60 (patch) | |
tree | 34d15f5dd3888074e6324e4d3b6bdd9631b11220 | |
parent | ae41ab2fe49ca456c4fb23859af8683c32c2429c (diff) |
Fix RHDRegWrite macro invocation breakage
This appears to be an obvious fix to a bug introduced with bab7c5f9.
Neither ignoring the blue component nor discarding the calculation
does made sense to me, and the obvious explanation for that would
be a misplaced parenthesis.
-rw-r--r-- | src/rhd_lut.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rhd_lut.c b/src/rhd_lut.c index 688607c..ea8564f 100644 --- a/src/rhd_lut.c +++ b/src/rhd_lut.c @@ -191,7 +191,7 @@ rhdLUTSetRows(struct rhdLUT *LUT, int numColors, int *indices, LOCO *colors) index = indices[i]; RHDRegWrite(LUT, DC_LUT_RW_INDEX, index); RHDRegWrite(LUT, DC_LUT_30_COLOR, - (colors[index].red << 20) | (colors[index].green) << 10) | (colors[index].blue); + (colors[index].red << 20) | (colors[index].green << 10) | (colors[index].blue)); } } |