From 58ab9cad0fa43d566a8bb49c809e34b4d4be93a2 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Fri, 28 Sep 2012 18:47:43 -0400 Subject: [PATCH] wrong resolution --- termite.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/termite.cc b/termite.cc index acd3ac6..ee3813a 100644 --- a/termite.cc +++ b/termite.cc @@ -1028,17 +1028,17 @@ static void load_config(GtkWindow *window, VteTerminal *vte, config_info *info, } if (get_config_color(config, "hint_foreground", &color)) { - hints.fg = cairo_pattern_create_rgb(color.red / 255.0f, - color.green / 255.0f, - color.blue / 255.0f); + hints.fg = cairo_pattern_create_rgb(color.red / 65535.0, + color.green / 65535.0, + color.blue / 65535.0); } else { hints.fg = cairo_pattern_create_rgb(1, 1, 1); } if (get_config_color(config, "hint_background", &color)) { - hints.bg = cairo_pattern_create_rgb(color.red / 255.0f, - color.green / 255.0f, - color.blue / 255.0f); + hints.bg = cairo_pattern_create_rgb(color.red / 65535.0, + color.green / 65535.0, + color.blue / 65535.0); } else { hints.bg = cairo_pattern_create_rgb(0, 0, 0); }