From b47ad17efb8d25ef91e2dec3970387c508fa7124 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Mon, 14 Oct 2013 23:42:51 -0400 Subject: [PATCH] Fix up hints to match the GdkColor -> GdkRGBA switch We no longer need to convert from ints to doubles, GdkRGBA already provides doubles. Closes #129 --- termite.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/termite.cc b/termite.cc index 6d5177f..d897759 100644 --- a/termite.cc +++ b/termite.cc @@ -1062,9 +1062,10 @@ static maybe get_config_color(GKeyFile *config, const char *section, co static maybe get_config_cairo_color(GKeyFile *config, const char *group, const char *key) { if (auto color = get_config_color(config, group, key)) { - return cairo_pattern_create_rgb(color->red / 65535.0, - color->green / 65535.0, - color->blue / 65535.0); + return cairo_pattern_create_rgba(color->red, + color->green, + color->blue, + color->alpha); } return {}; }