summaryrefslogtreecommitdiffstats
path: root/src/blueshift_randr.pyx
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)