Commit 5e43848a authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

applied patch from Saul Goode (bug #379611), then cleaned up further.

2006-11-27  Sven Neumann  <sven@gimp.org>

	* app/base/color-balance.c (color_balance_transfer_init): applied
	patch from Saul Goode (bug #379611), then cleaned up further.
parent e5be061f
2006-11-27 Sven Neumann <sven@gimp.org>
* app/base/color-balance.c (color_balance_transfer_init): applied
patch from Saul Goode (bug #379611), then cleaned up further.
2006-11-26 Kevin Cozens <kcozens@cvs.gnome.org>
 
* plug-ins/script-fu/tinyscheme/scheme.c (is_integer): Fix revealed
......
......@@ -212,13 +212,16 @@ color_balance_transfer_init (void)
for (i = 0; i < 256; i++)
{
highlights_add[i] =
shadows_sub[255 - i] = (1.075 - 1 / ((gdouble) i / 16.0 + 1));
gdouble low = (1.075 - 1 / ((gdouble) i / 16.0 + 1));
gdouble mid = 0.667 * (1 - SQR (((gdouble) i - 127.0) / 127.0));
midtones_add[i] =
midtones_sub[i] = 0.667 * (1 - SQR (((gdouble) i - 127.0) / 127.0));
shadows_add[i] = low;
shadows_sub[255 - i] = low;
shadows_add[i] =
highlights_sub[i] = 0.667 * (1 - SQR (((gdouble) i - 127.0) / 127.0));
midtones_add[i] = mid;
midtones_sub[i] = mid;
highlights_add[255 - i] = low;
highlights_sub[i] = low;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment