From 9204b84ecdc1905cf03534223f5cb5f392104ef5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 16 Apr 2014 00:30:22 +0200 Subject: change quartz functions to utilize that quarts expects floats rather than uint16_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/monitor.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/monitor.py') diff --git a/src/monitor.py b/src/monitor.py index 93c6d93..6f28da4 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -337,14 +337,12 @@ def quartz(*crtcs, screen = 0, display = None): quartz_opened = True if (not quartz_open() == 0): raise Exception("Could not open Quartz connection") - # Convert curves to [0, 0xFFFF] integer lists - (R_curve, G_curve, B_curve) = translate_to_integers() try: # Select all CRTC:s if none have been selected if len(crtcs) == 0: crtcs = range(quartz_crtc_count()) # Apply adjustments - quartz_apply(list(crtcs), R_curve, G_curve, B_curve) + quartz_apply(list(crtcs), r_curve, g_curve, b_curve) except OverflowError: pass # Happens on exit by TERM signal -- cgit v1.2.3-70-g09d2