summaryrefslogtreecommitdiffstats
path: root/src/blueshift_quartz.pyx
diff options
context:
space:
mode:
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()
+