summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-hsv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmate-desktop/mate-hsv.c')
-rw-r--r--libmate-desktop/mate-hsv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmate-desktop/mate-hsv.c b/libmate-desktop/mate-hsv.c
index 6cb7e9a..9b59608 100644
--- a/libmate-desktop/mate-hsv.c
+++ b/libmate-desktop/mate-hsv.c
@@ -825,9 +825,9 @@ paint_ring (MateHSV *hsv,
b = 1.0;
hsv_to_rgb (&r, &g, &b);
- *p++ = (((int)floor (r * 255 + 0.5) << 16) |
- ((int)floor (g * 255 + 0.5) << 8) |
- (int)floor (b * 255 + 0.5));
+ *p++ = (((int)(r * 255.0) << 16) |
+ ((int)(g * 255.0) << 8) |
+ (int)(b * 255.0));
}
}