diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-16 01:52:34 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-16 01:52:34 +0200 |
commit | 30ea51476b71d015f339ccac5fa8ffbb28359292 (patch) | |
tree | d223dc8a5255f7a0b4d5790a30df3a0534c9c18a /src/blueshift_quartz_c.c | |
parent | missed to read gamma ramp size (diff) | |
download | blueshift-30ea51476b71d015f339ccac5fa8ffbb28359292.tar.gz blueshift-30ea51476b71d015f339ccac5fa8ffbb28359292.tar.bz2 blueshift-30ea51476b71d015f339ccac5fa8ffbb28359292.tar.xz |
fix logical errors
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/blueshift_quartz_c.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |