From d757d74765d9f7bb1d949966e12a6fada6ab1465 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 3 Sep 2014 20:07:20 +0200 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/test.cc | 28 ++++++++-------------------- 1 file 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); -- cgit v1.2.3-70-g09d2