[gnumeric] Colors: use guint16, not gushort.



commit c4ba6dd3b2ae138641ae2d9f60fd9fd5b4878a4b
Author: Morten Welinder <terra gnome org>
Date:   Wed Aug 1 11:31:13 2012 -0400

    Colors: use guint16, not gushort.
    
    We advertise 16-bit support, so use the explicit 16-bit type.

 ChangeLog         |   10 ++++++++--
 src/style-color.c |    2 +-
 src/style-color.h |    2 +-
 3 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 80a5e4a..57e439a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,13 @@
+2012-08-01  Morten Welinder  <terra gnome org>
+
+	* src/style-color.c (style_color_new_rgba16): Explicitly use a
+	16-bit type argument.
+
 2012-08-01  Jean Brefort  <jean brefort normalesup org>
 
-	* src/sheet-style.c (sheet_style_init_size): Rename style_color_new_i8 and
-	style_color_new_i16 and add an alpha aware version.
+	* src/sheet-style.c (sheet_style_init_size): Rename
+	style_color_new_i8 and style_color_new_i16 and add an alpha-aware
+	version.
 	* src/style-border.c (style_border_equal), (style_border_hash): ditto.
 	* src/style-color.c (style_color_new_rgba16),
 	(style_color_new_pango), (style_color_new_gdk),
diff --git a/src/style-color.c b/src/style-color.c
index ceec79a..6f9ff23 100644
--- a/src/style-color.c
+++ b/src/style-color.c
@@ -46,7 +46,7 @@ style_color_new_uninterned (GOColor c, gboolean is_auto)
 }
 
 GnmColor *
-style_color_new_rgba16 (gushort red, gushort green, gushort blue, gushort alpha)
+style_color_new_rgba16 (guint16 red, guint16 green, guint16 blue, guint16 alpha)
 {
 	return style_color_new_rgba8 (red >> 8, green >> 8, blue >> 8, alpha >> 8);
 }
diff --git a/src/style-color.h b/src/style-color.h
index 1ff47cf..e5f4970 100644
--- a/src/style-color.h
+++ b/src/style-color.h
@@ -28,7 +28,7 @@ GNM_VAR_DECL GdkRGBA gs_yellow;
 
 GnmColor *style_color_new_go    (GOColor c);
 GnmColor *style_color_new_name  (char const *name);
-GnmColor *style_color_new_rgba16(gushort red, gushort green, gushort blue, gushort alpha);
+GnmColor *style_color_new_rgba16(guint16 red, guint16 green, guint16 blue, guint16 alpha);
 GnmColor *style_color_new_rgb8  (guint8 red, guint8 green, guint8 blue);
 GnmColor *style_color_new_rgba8 (guint8 red, guint8 green, guint8 blue, guint8 alpha);
 GnmColor *style_color_new_pango (PangoColor const *c);



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