From e94afbea92edb78826bff981ddc84b0757b2550f Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 25 Sep 2007 12:39:14 +0000 Subject: [PATCH] Only use gamma correction on R,G,B & Y, and only when it's turned on! git-svn-id: http://svn.voria.com/code@755 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp b/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp index 79cafc3..5274812 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp @@ -156,7 +156,10 @@ ColorSlider::redraw(GdkEventExpose */*bleh*/) int i; for(i=width-1;i>=0;i--) { - color_func(color,gamma_out(float(i)/float(width))); + color_func(color, + (use_colorspace_gamma() && type