aboutsummaryrefslogtreecommitdiffstats
path: root/fake-quartz-cg.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-11-20 15:45:17 +0100
committerMattias Andrée <m@maandree.se>2026-11-20 15:45:17 +0100
commit6421c8217b38d7b5605c652b89793b2de0192d91 (patch)
tree5234e86fc5d223be29e0751b0e6165d26ba12f55 /fake-quartz-cg.c
parentfix typo (diff)
downloadlibgamma-0.9.tar.gz
libgamma-0.9.tar.bz2
libgamma-0.9.tar.xz
Add libgamma_get_fd and fix some minor issuesHEAD0.9master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'fake-quartz-cg.c')
-rw-r--r--fake-quartz-cg.c2
1 files changed, 1 insertions, 1 deletions
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));