diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-19 18:55:42 +0000 |
|---|---|---|
| committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-19 22:26:34 +0000 |
| commit | cf5edc95c552fe32d365f33b77e2213e814a980a (patch) | |
| tree | 9206667956e077dffe01724924e15d5c52ce423f /src/ui/widget/selected-style.cpp | |
| parent | Run clang-tidy’s modernize-redundant-void-arg pass. (diff) | |
| download | inkscape-cf5edc95c552fe32d365f33b77e2213e814a980a.tar.gz inkscape-cf5edc95c552fe32d365f33b77e2213e814a980a.zip | |
Replace functions with methods in SPColor.
Diffstat (limited to 'src/ui/widget/selected-style.cpp')
| -rw-r--r-- | src/ui/widget/selected-style.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp index ceb3ca2ff..bc4a3558f 100644 --- a/src/ui/widget/selected-style.cpp +++ b/src/ui/widget/selected-style.cpp @@ -1212,7 +1212,7 @@ RotateableSwatch::~RotateableSwatch() = default; double RotateableSwatch::color_adjust(float *hsla, double by, guint32 cc, guint modifier) { - sp_color_rgb_to_hsl_floatv (hsla, SP_RGBA32_R_F(cc), SP_RGBA32_G_F(cc), SP_RGBA32_B_F(cc)); + SPColor::rgb_to_hsl_floatv (hsla, SP_RGBA32_R_F(cc), SP_RGBA32_G_F(cc), SP_RGBA32_B_F(cc)); hsla[3] = SP_RGBA32_A_F(cc); double diff = 0; if (modifier == 2) { // saturation @@ -1251,7 +1251,7 @@ RotateableSwatch::color_adjust(float *hsla, double by, guint32 cc, guint modifie } float rgb[3]; - sp_color_hsl_to_rgb_floatv (rgb, hsla[0], hsla[1], hsla[2]); + SPColor::hsl_to_rgb_floatv (rgb, hsla[0], hsla[1], hsla[2]); gchar c[64]; sp_svg_write_color (c, sizeof(c), |
