[goffice] modify GO_COLOR_DOUBLE_* as suggested by Morten



commit fbb4ca540614738ff02c5540a274ee8fbf9e825a
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sat Sep 5 19:12:57 2009 +0200

    modify GO_COLOR_DOUBLE_* as suggested by Morten

 goffice/utils/go-color.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/goffice/utils/go-color.h b/goffice/utils/go-color.h
index ce967b2..3c110eb 100644
--- a/goffice/utils/go-color.h
+++ b/goffice/utils/go-color.h
@@ -78,10 +78,10 @@ typedef struct {
 		GO_COLOR_MONO_INTERPOLATE(GO_COLOR_UINT_B(c1), GO_COLOR_UINT_B(c2), t), \
 		GO_COLOR_MONO_INTERPOLATE(GO_COLOR_UINT_A(c1), GO_COLOR_UINT_A(c2), t) )
 
-#define GO_COLOR_DOUBLE_R(x) (double)GO_COLOR_UINT_R(x)/255.0
-#define GO_COLOR_DOUBLE_G(x) (double)GO_COLOR_UINT_G(x)/255.0
-#define GO_COLOR_DOUBLE_B(x) (double)GO_COLOR_UINT_B(x)/255.0
-#define GO_COLOR_DOUBLE_A(x) (double)GO_COLOR_UINT_A(x)/255.0
+#define GO_COLOR_DOUBLE_R(x) (GO_COLOR_UINT_R(x)/255.0)
+#define GO_COLOR_DOUBLE_G(x) (GO_COLOR_UINT_G(x)/255.0)
+#define GO_COLOR_DOUBLE_B(x) (GO_COLOR_UINT_B(x)/255.0)
+#define GO_COLOR_DOUBLE_A(x) (GO_COLOR_UINT_A(x)/255.0)
 
 #define GO_COLOR_TO_CAIRO(x) GO_COLOR_DOUBLE_R(x),GO_COLOR_DOUBLE_G(x),GO_COLOR_DOUBLE_B(x),GO_COLOR_DOUBLE_A(x)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]