From: Steinar H. Gunderson Date: Sun, 9 Feb 2020 13:40:38 +0000 (+0100) Subject: Neutral white balance is (1,1,1), not (0.5,0.5,0.5). Probably irrelevant in practice... X-Git-Tag: 1.9.2~51 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c8a83bd9aaf2bebe739865b23c636455b4b18ce9;p=nageru Neutral white balance is (1,1,1), not (0.5,0.5,0.5). Probably irrelevant in practice currently, though. --- diff --git a/nageru/glwidget.cpp b/nageru/glwidget.cpp index 10d39cb..d3e1d56 100644 --- a/nageru/glwidget.cpp +++ b/nageru/glwidget.cpp @@ -72,7 +72,7 @@ void GLWidget::grab_white_balance(unsigned channel, unsigned x, unsigned y) { // Set the white balance to neutral for the grab. It's probably going to // flicker a bit, but hopefully this display is not live anyway. - global_mixer->set_wb(output, 0.5, 0.5, 0.5); + global_mixer->set_wb(output, 1.0, 1.0, 1.0); global_mixer->wait_for_next_frame(); // Mark that the next paintGL() should grab the given pixel.