diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-28 15:18:38 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-28 15:18:38 +0200 |
commit | 9ccc965782253ea4847ed784b9c6cb5c5b1f8ef5 (patch) | |
tree | 32386de8407b95650998dfbbf1350094d2663711 /src/test | |
parent | m doc (diff) | |
download | libgamma-9ccc965782253ea4847ed784b9c6cb5c5b1f8ef5.tar.gz libgamma-9ccc965782253ea4847ed784b9c6cb5c5b1f8ef5.tar.bz2 libgamma-9ccc965782253ea4847ed784b9c6cb5c5b1f8ef5.tar.xz |
ramps => ramps16
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/test/test.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/test/test.c b/src/test/test.c index eafe90f..8bb6183 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -275,8 +275,8 @@ int main(void) libgamma_partition_state_t* restrict part_state = malloc(sizeof(libgamma_partition_state_t)); libgamma_crtc_state_t* restrict crtc_state = malloc(sizeof(libgamma_crtc_state_t)); libgamma_crtc_information_t info; - libgamma_gamma_ramps_t old_ramps; - libgamma_gamma_ramps_t ramps; + libgamma_gamma_ramps16_t old_ramps; + libgamma_gamma_ramps16_t ramps; size_t i, n; int r; @@ -296,13 +296,13 @@ int main(void) old_ramps.green_size = info.green_gamma_size; old_ramps.blue_size = info.blue_gamma_size; ramps = old_ramps; - libgamma_gamma_ramps_initialise(&old_ramps); - libgamma_gamma_ramps_initialise(&ramps); + libgamma_gamma_ramps16_initialise(&old_ramps); + libgamma_gamma_ramps16_initialise(&ramps); - libgamma_crtc_get_gamma_ramps(crtc_state, &old_ramps); - r = libgamma_crtc_get_gamma_ramps(crtc_state, &ramps); + libgamma_crtc_get_gamma_ramps16(crtc_state, &old_ramps); + r = libgamma_crtc_get_gamma_ramps16(crtc_state, &ramps); if (r) - libgamma_perror("libgamma_crtc_get_gamma_ramps", r); + libgamma_perror("libgamma_crtc_get_gamma_ramps16", r); else { n = ramps.red_size; @@ -331,13 +331,13 @@ int main(void) ramps.red[i] /= 2; printf("Dimming monitor for 1 second...\n"); - r = libgamma_crtc_set_gamma_ramps(crtc_state, ramps); + r = libgamma_crtc_set_gamma_ramps16(crtc_state, ramps); if (r) - libgamma_perror("libgamma_crtc_set_gamma_ramps", r); + libgamma_perror("libgamma_crtc_set_gamma_ramps16", r); sleep(1); - r = libgamma_crtc_set_gamma_ramps(crtc_state, old_ramps); + r = libgamma_crtc_set_gamma_ramps16(crtc_state, old_ramps); if (r) - libgamma_perror("libgamma_crtc_set_gamma_ramps", r); + libgamma_perror("libgamma_crtc_set_gamma_ramps16", r); printf("Done!\n"); } @@ -345,8 +345,8 @@ int main(void) /* TODO Test _f gamma ramp setters. */ /* TODO Test gamma ramp getters/setters of other bit depths. */ - libgamma_gamma_ramps_destroy(&ramps); - libgamma_gamma_ramps_destroy(&old_ramps); + libgamma_gamma_ramps16_destroy(&ramps); + libgamma_gamma_ramps16_destroy(&old_ramps); libgamma_crtc_free(crtc_state); libgamma_partition_free(part_state); libgamma_site_free(site_state); |