summaryrefslogtreecommitdiffstats
path: root/src/blueshift_quartz.pyx
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-16 01:12:25 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-16 01:12:25 +0200
commit1752e337c70508b3e0a143934a70e61afdc9daae (patch)
treeec1a002747aa3e0afcc8827f3ccccc3b362fc611 /src/blueshift_quartz.pyx
parentchange quartz functions to utilize that quarts expects floats rather than uint16_t (diff)
downloadblueshift-1752e337c70508b3e0a143934a70e61afdc9daae.tar.gz
blueshift-1752e337c70508b3e0a143934a70e61afdc9daae.tar.bz2
blueshift-1752e337c70508b3e0a143934a70e61afdc9daae.tar.xz
finish quartz
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/blueshift_quartz.pyx')
-rw-r--r--src/blueshift_quartz.pyx14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/blueshift_quartz.pyx b/src/blueshift_quartz.pyx
index e9d424e..528c08f 100644
--- a/src/blueshift_quartz.pyx
+++ b/src/blueshift_quartz.pyx
@@ -60,6 +60,12 @@ cdef extern void blueshift_quartz_close()
Resource freeing stage of colour curve control
'''
+cdef extern void blueshift_quartz_restore()
+'''
+Restore all gamma curves (on each and every CRTC on the system)
+to the settings on ColorSync
+'''
+
cdef float* r_c
@@ -165,3 +171,11 @@ def quartz_close():
# Close free all resources in the native code
blueshift_quartz_close()
+
+def quartz_restore():
+ '''
+ Restore all gamma curves (on each and every CRTC on the system)
+ to the settings on ColorSync
+ '''
+ blueshift_quartz_restore()
+