diff options
| author | Mattias Andrée <m@maandree.se> | 2026-11-20 15:45:17 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-11-20 15:45:17 +0100 |
| commit | 6421c8217b38d7b5605c652b89793b2de0192d91 (patch) | |
| tree | 5234e86fc5d223be29e0751b0e6165d26ba12f55 /fake-quartz-cg.c | |
| parent | fix typo (diff) | |
| download | libgamma-0518e06d4bc283d1087edb69934ff4ee77a29273.tar.gz libgamma-0518e06d4bc283d1087edb69934ff4ee77a29273.tar.bz2 libgamma-0518e06d4bc283d1087edb69934ff4ee77a29273.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'fake-quartz-cg.c')
| -rw-r--r-- | fake-quartz-cg.c | 2 |
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)); |
