From 30ea51476b71d015f339ccac5fa8ffbb28359292 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 16 Apr 2014 01:52:34 +0200 Subject: fix logical errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blueshift_quartz_c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/blueshift_quartz_c.c') diff --git a/src/blueshift_quartz_c.c b/src/blueshift_quartz_c.c index 19ffbe9..07432bd 100644 --- a/src/blueshift_quartz_c.c +++ b/src/blueshift_quartz_c.c @@ -183,7 +183,7 @@ uint16_t* blueshift_quartz_read(int use_crtc) rc += gamma_size; for (i = 0; i < gamma_size; i++) { - int32_t v = blue[i] * UINT16_MAX; + int32_t v = green[i] * UINT16_MAX; rc[i] = (uint16_t)(v < 0 ? 0 : v > UINT16_MAX ? UINT16_MAX : v); } rc += gamma_size; -- cgit v1.2.3-70-g09d2