aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-hsv-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-11-15 06:04:21 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-11-15 06:04:21 +0800
commit9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91 (patch)
tree2e1e96f33404781354c422a7e9beaf458ebeb655 /widgets/misc/e-hsv-utils.c
parent7e8f8bb9e5167b0219b48ab3e8062080d3740b0a (diff)
downloadgsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.gz
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.zst
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.zip
** Remove trailing whitespace from source code.
2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
Diffstat (limited to 'widgets/misc/e-hsv-utils.c')
-rw-r--r--widgets/misc/e-hsv-utils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/widgets/misc/e-hsv-utils.c b/widgets/misc/e-hsv-utils.c
index 9da22788f7..b42271fb19 100644
--- a/widgets/misc/e-hsv-utils.c
+++ b/widgets/misc/e-hsv-utils.c
@@ -30,22 +30,22 @@
how much you want their respective channels modified (and in what direction).
if it can't do the specified modification, it does it in the oppositon direction */
void
-e_hsv_tweak (GdkColor *colour, gdouble delta_h, gdouble delta_s, gdouble delta_v)
+e_hsv_tweak (GdkColor *colour, gdouble delta_h, gdouble delta_s, gdouble delta_v)
{
gdouble h, s, v, r, g, b;
r = colour->red / 65535.0f;
g = colour->green / 65535.0f;
b = colour->blue / 65535.0f;
-
+
e_rgb_to_hsv (r, g, b, &h, &s, &v);
-
+
if (h + delta_h < 0) {
h -= delta_h;
} else {
h += delta_h;
}
-
+
if (s + delta_s < 0) {
s -= delta_s;
} else {
@@ -59,7 +59,7 @@ e_hsv_tweak (GdkColor *colour, gdouble delta_h, gdouble delta_s, gdouble delta_v
}
e_hsv_to_rgb (h, s, v, &r, &g, &b);
-
+
colour->red = r * 65535.0f;
colour->green = g * 65535.0f;
colour->blue = b * 65535.0f;