From 73df5cdda541938e1891b650b3adfc1c317682fb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 17 Feb 2014 01:20:03 +0100 Subject: fix some minor errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blueshift_randr.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/blueshift_randr.pyx') 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) -- cgit v1.2.3-70-g09d2