summaryrefslogtreecommitdiffstats
path: root/src/blueshift_quartz_c.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-16 01:52:34 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-16 01:52:34 +0200
commit30ea51476b71d015f339ccac5fa8ffbb28359292 (patch)
treed223dc8a5255f7a0b4d5790a30df3a0534c9c18a /src/blueshift_quartz_c.c
parentmissed to read gamma ramp size (diff)
downloadblueshift-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.c2
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;