X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fwidget_coloredit.cpp;h=bd715911623dde87f333b43bef596dd0f2ec597d;hb=8ef042c40521681cea99944097c4f90a5ac6cf74;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..bd71591 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 @@ -39,6 +40,8 @@ #include #include +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -156,7 +159,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