summaryrefslogtreecommitdiffstats
path: root/src/fake_quartz.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-16 00:02:10 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-16 00:02:10 +0200
commit6b301d13d6dbc118c9a08323c73c52e64d93e826 (patch)
treef94db1342b2f9ff55bd85213252fc820cd7bc6b6 /src/fake_quartz.h
parentm (diff)
downloadblueshift-6b301d13d6dbc118c9a08323c73c52e64d93e826.tar.gz
blueshift-6b301d13d6dbc118c9a08323c73c52e64d93e826.tar.bz2
blueshift-6b301d13d6dbc118c9a08323c73c52e64d93e826.tar.xz
add fake_quartz.c
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/fake_quartz.h')
-rw-r--r--src/fake_quartz.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/fake_quartz.h b/src/fake_quartz.h
index dc13b81..24935e8 100644
--- a/src/fake_quartz.h
+++ b/src/fake_quartz.h
@@ -41,7 +41,7 @@ typedef float CGGammaValue;
typedef uint32_t CGDirectDisplayID;
-CGError CGGetActiveDisplayList(uint32_t max_size, CGDirectDisplayID* displays_out, uint32_t* count_out);
+CGError CGGetOnlineDisplayList(uint32_t max_size, CGDirectDisplayID* displays_out, uint32_t* count_out);
CGError CGSetDisplayTransferByTable(CGDirectDisplayID display, uint32_t gamma_size, const CGGammaValue* red,
const CGGammaValue* green, const CGGammaValue* blue);
@@ -54,5 +54,13 @@ void CGDisplayRestoreColorSyncSettings(void);
uint32_t CGDisplayGammaTableCapacity(CGDirectDisplayID display);
+/* The follow part most only be used when this module is used,
+ it cannot be used when the real CoreGraphics is used.
+ CoreGraphics does not have this function, it is added so
+ that there is a way to cleanly close the X connection
+ and free resources needed by this module. */
+void close_fake_quartz(void);
+
+
#endif