summaryrefslogtreecommitdiffstats
path: root/src/blueshift_randr.pyx
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-17 01:20:03 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-17 01:20:03 +0100
commit73df5cdda541938e1891b650b3adfc1c317682fb (patch)
treeb5f1f7c32a943cdf6fb103d3f6af7520f3abdf65 /src/blueshift_randr.pyx
parentadd tempurature mappings from redshift (diff)
downloadblueshift-73df5cdda541938e1891b650b3adfc1c317682fb.tar.gz
blueshift-73df5cdda541938e1891b650b3adfc1c317682fb.tar.bz2
blueshift-73df5cdda541938e1891b650b3adfc1c317682fb.tar.xz
fix some minor errors
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/blueshift_randr.pyx')
-rw-r--r--src/blueshift_randr.pyx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blueshift_randr.pyx b/src/blueshift_randr.pyx
index e022714..d5e13b6 100644
--- a/src/blueshift_randr.pyx
+++ b/src/blueshift_randr.pyx
@@ -25,9 +25,9 @@ def randr_apply(unsigned long long use_crtcs, r_curve, g_curve, b_curve):
if (r is NULL) or (g is NULL) or (b is NULL):
raise MemoryError()
for i in range(256):
- r[i] = r_curve[i]
- g[i] = g_curve[i]
- b[i] = b_curve[i]
+ r[i] = r_curve[i] & 0xFFFF
+ g[i] = g_curve[i] & 0xFFFF
+ b[i] = b_curve[i] & 0xFFFF
rc = blueshift_randr_apply(use_crtcs, r, g, b)
free(r)
free(g)