From 6421c8217b38d7b5605c652b89793b2de0192d91 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 20 Nov 2026 15:45:17 +0100 Subject: Add libgamma_get_fd and fix some minor issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- fake-quartz-cg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fake-quartz-cg.c') diff --git a/fake-quartz-cg.c b/fake-quartz-cg.c index 999609b..b1a6a4b 100644 --- a/fake-quartz-cg.c +++ b/fake-quartz-cg.c @@ -254,7 +254,7 @@ CGGetOnlineDisplayList(uint32_t max_size, CGDirectDisplayID *restrict displays_o } /* Copy over the gamma ramps to the memory area we have allocated */ - memcpy(&original_ramps[(3 * i + 0) * 256], xcb_randr_get_crtc_gamma_red(gamma_reply) + memcpy(&original_ramps[(3 * i + 0) * 256], xcb_randr_get_crtc_gamma_red(gamma_reply), 256 * sizeof(*original_ramps)); memcpy(&original_ramps[(3 * i + 1) * 256], xcb_randr_get_crtc_gamma_green(gamma_reply), 256 * sizeof(*original_ramps)); -- cgit v1.3.1