Fix conversion from GdkColor to GdkRGBA

This commit is contained in:
Ignacio Casal Quinteiro 2011-03-06 11:16:28 +01:00
parent 39d4207ab7
commit 0a03e81224

View File

@ -3620,9 +3620,9 @@ get_cursor_color (GtkStyleContext *context,
if (style_color) if (style_color)
{ {
color->red = style_color->red / 65535; color->red = style_color->red / 65535.0;
color->green = style_color->green / 65535; color->green = style_color->green / 65535.0;
color->blue = style_color->blue / 65535; color->blue = style_color->blue / 65535.0;
color->alpha = 1; color->alpha = 1;
gdk_color_free (style_color); gdk_color_free (style_color);