diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-16 01:12:25 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-16 01:12:25 +0200 |
commit | 1752e337c70508b3e0a143934a70e61afdc9daae (patch) | |
tree | ec1a002747aa3e0afcc8827f3ccccc3b362fc611 /src/blueshift_quartz_c.h | |
parent | change quartz functions to utilize that quarts expects floats rather than uint16_t (diff) | |
download | blueshift-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 '')
-rw-r--r-- | src/blueshift_quartz_c.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/blueshift_quartz_c.h b/src/blueshift_quartz_c.h index f8ea783..d21ef02 100644 --- a/src/blueshift_quartz_c.h +++ b/src/blueshift_quartz_c.h @@ -25,9 +25,14 @@ # include "fake_quartz.h" #else # include <CoreGraphics/CGDirectDisplay.h> +# include <CoreGraphics/CGError.h> #endif +#ifndef FAKE_QUARTZ +# define close_fake_quartz() /* Do nothing */ +#endif + /** * Start stage of colour curve control @@ -69,6 +74,12 @@ int blueshift_quartz_apply(int use_crtc, float* r_curves, float* g_curves, float */ void blueshift_quartz_close(void); +/** + * Restore all gamma curves (on each and every CRTC on the system) + * to the settings on ColorSync + */ +void blueshift_quartz_restore(void); + #endif |