diff options
author | Mattias Andrée <maandree@kth.se> | 2021-03-07 22:51:21 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-03-07 22:51:21 +0100 |
commit | baa6a1cf7979c095c1081daa2a2d1134c76d2f1b (patch) | |
tree | d0525238a334091eb4d241b0b83da1a4a1793d5b /libgamma_x_randr_crtc_get_gamma_ramps16.c | |
parent | Start replacing info manual with man pages (diff) | |
download | libgamma-baa6a1cf7979c095c1081daa2a2d1134c76d2f1b.tar.gz libgamma-baa6a1cf7979c095c1081daa2a2d1134c76d2f1b.tar.bz2 libgamma-baa6a1cf7979c095c1081daa2a2d1134c76d2f1b.tar.xz |
misc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libgamma_x_randr_crtc_get_gamma_ramps16.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgamma_x_randr_crtc_get_gamma_ramps16.c b/libgamma_x_randr_crtc_get_gamma_ramps16.c index 5e6ad5d..7cc737a 100644 --- a/libgamma_x_randr_crtc_get_gamma_ramps16.c +++ b/libgamma_x_randr_crtc_get_gamma_ramps16.c @@ -12,7 +12,7 @@ * error identifier provided by this library */ int -libgamma_x_randr_crtc_get_gamma_ramps16(libgamma_crtc_state_t *restrict this, libgamma_gamma_ramps16_t *restrict ramps) +libgamma_x_randr_crtc_get_gamma_ramps16(struct libgamma_crtc_state *restrict this, struct libgamma_gamma_ramps16 *restrict ramps) { xcb_connection_t *restrict connection = this->partition->site->data; xcb_randr_get_crtc_gamma_cookie_t cookie; @@ -41,9 +41,9 @@ libgamma_x_randr_crtc_get_gamma_ramps16(libgamma_crtc_state_t *restrict this, li green = xcb_randr_get_crtc_gamma_green(reply); blue = xcb_randr_get_crtc_gamma_blue(reply); /* Copy over the gamma ramps to our memory */ - memcpy(ramps->red, red, ramps->red_size * sizeof(uint16_t)); - memcpy(ramps->green, green, ramps->green_size * sizeof(uint16_t)); - memcpy(ramps->blue, blue, ramps->blue_size * sizeof(uint16_t)); + memcpy(ramps->red, red, ramps->red_size * sizeof(*red)); + memcpy(ramps->green, green, ramps->green_size * sizeof(*green)); + memcpy(ramps->blue, blue, ramps->blue_size * sizeof(*blue)); free(reply); return 0; |