diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-09-03 20:07:20 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-09-03 20:07:20 +0200 |
commit | d757d74765d9f7bb1d949966e12a6fada6ab1465 (patch) | |
tree | b650a9ddc421e160bdee60698077b0faebf83419 /src | |
parent | everything works except only the blue channel can be modified (diff) | |
download | libgammamm-d757d74765d9f7bb1d949966e12a6fada6ab1465.tar.gz libgammamm-d757d74765d9f7bb1d949966e12a6fada6ab1465.tar.bz2 libgammamm-d757d74765d9f7bb1d949966e12a6fada6ab1465.tar.xz |
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/test.cc | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/src/test.cc b/src/test.cc index 833d911..3ad9af9 100644 --- a/src/test.cc +++ b/src/test.cc @@ -190,40 +190,34 @@ int main(void) saved_blue = new uint16_t[ramps->blue.size]; crtc->get_gamma(ramps); + for (i = 0; i < ramps->red.size; i++) { std::cout << ramps->red[i] << " "; saved_red[i] = ramps->red[i]; - ramps->red[i] /= 2; /* FIXME does not change the ramp */ + ramps->red[i] /= 2; } std::cout << std::endl; std::cout << std::endl; - crtc->get_gamma(ramps); for (i = 0; i < ramps->green.size; i++) { std::cout << ramps->green[i] << " "; saved_green[i] = ramps->green[i]; - ramps->green[i] /= 2; /* FIXME does not change the ramp */ + ramps->green[i] /= 2; } std::cout << std::endl; std::cout << std::endl; - crtc->get_gamma(ramps); for (i = 0; i < ramps->blue.size; i++) { std::cout << ramps->blue[i] << " "; saved_blue[i] = ramps->blue[i]; - ramps->blue[i] /= 2; /* FIXME why does this one change the ramp but why does not the other two? */ + ramps->blue[i] /= 2; } std::cout << std::endl; std::cout << std::endl; - std::cout << ramps->red[ramps->red.size - 1] << " "; - std::cout << ramps->green[ramps->green.size - 1] << " "; - std::cout << ramps->blue[ramps->blue.size - 1] << std::endl; - std::cout << std::endl; - crtc->set_gamma(ramps); sleep(1); @@ -257,40 +251,34 @@ int main(void) saved_blue = new uint16_t[ramps->blue.size]; crtc->get_gamma(ramps); + for (i = 0; i < ramps->red.size; i++) { std::cout << ramps->red[i] << " "; saved_red[i] = ramps->red[i]; - ramps->red[i] /= 2; /* FIXME does not change the ramp */ + ramps->red[i] /= 2; } std::cout << std::endl; std::cout << std::endl; - crtc->get_gamma(ramps); for (i = 0; i < ramps->green.size; i++) { std::cout << ramps->green[i] << " "; saved_green[i] = ramps->green[i]; - ramps->green[i] /= 2; /* FIXME does not change the ramp */ + ramps->green[i] /= 2; } std::cout << std::endl; std::cout << std::endl; - crtc->get_gamma(ramps); for (i = 0; i < ramps->blue.size; i++) { std::cout << ramps->blue[i] << " "; saved_blue[i] = ramps->blue[i]; - ramps->blue[i] /= 2; /* FIXME why does this one change the ramp but why does not the other two? */ + ramps->blue[i] /= 2; } std::cout << std::endl; std::cout << std::endl; - std::cout << ramps->red[ramps->red.size - 1] << " "; - std::cout << ramps->green[ramps->green.size - 1] << " "; - std::cout << ramps->blue[ramps->blue.size - 1] << std::endl; - std::cout << std::endl; - crtc->set_gamma(ramps); sleep(1); |