X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fwidget_coloredit.cpp;h=2d7940ef6402e9bfadbcc1e53fef6598037f362f;hb=8cb3373792fb02dab67b728ecb4e6dce36269c18;hp=79cafc3f029df39c137b38b64d1c5ca8f817cc3e;hpb=d07cf2aeaf95ac90d7eca16ab39a4c4bda9743e6;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp b/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp index 79cafc3..2d7940e 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -156,7 +157,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