diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-16 00:30:22 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-16 00:30:22 +0200 |
commit | 9204b84ecdc1905cf03534223f5cb5f392104ef5 (patch) | |
tree | 94d294f0a0dbdfae14fdf2f2f5c53da164118719 /src/monitor.py | |
parent | add dummy c code for quartz (diff) | |
download | blueshift-9204b84ecdc1905cf03534223f5cb5f392104ef5.tar.gz blueshift-9204b84ecdc1905cf03534223f5cb5f392104ef5.tar.bz2 blueshift-9204b84ecdc1905cf03534223f5cb5f392104ef5.tar.xz |
change quartz functions to utilize that quarts expects floats rather than uint16_t
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/monitor.py')
-rw-r--r-- | src/monitor.py | 4 |
1 files changed, 1 insertions, 3 deletions
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 |