From 6b301d13d6dbc118c9a08323c73c52e64d93e826 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 16 Apr 2014 00:02:10 +0200 Subject: add fake_quartz.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/fake_quartz.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/fake_quartz.h') 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 -- cgit v1.2.3-70-g09d2