summaryrefslogtreecommitdiff
path: root/eel/eel-gdk-extensions.c
diff options
context:
space:
mode:
Diffstat (limited to 'eel/eel-gdk-extensions.c')
-rw-r--r--eel/eel-gdk-extensions.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/eel/eel-gdk-extensions.c b/eel/eel-gdk-extensions.c
index 646c6405..58610529 100644
--- a/eel/eel-gdk-extensions.c
+++ b/eel/eel-gdk-extensions.c
@@ -429,9 +429,10 @@ eel_gdk_rgb_to_rgba (guint32 color)
{
GdkRGBA result;
- result.red = ((color >> 16) & 0xFF) / 0xFF;
- result.green = ((color >> 8) & 0xFF) / 0xFF;
- result.blue = (color & 0xff) / 0xFF;
+ result.red = ((gdouble) ((color >> 16) & 0xFF)) / 0xFF;
+ result.green = ((gdouble) ((color >> 8) & 0xFF)) / 0xFF;
+ result.blue = ((gdouble) (color & 0xFF)) / 0xFF;
+ result.alpha = 1.0;
return result;
}