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 {}; }