libgnt/libgnt

681917bcbdfb
Parents 02055322a457
Children 456c1658282d
Fix setting custom colorpairs containing 'default', thanks to jieryn on
IRC.
  • +2 -2
    gntcolors.c
  • --- a/gntcolors.c Tue Jan 13 23:13:32 2009 +0000
    +++ b/gntcolors.c Thu Jan 29 02:12:16 2009 +0000
    @@ -208,7 +208,7 @@
    key = g_ascii_strdown(key, -1);
    color = gnt_colors_get_color(key);
    g_free(key);
    - if (color == -1)
    + if (color == -EINVAL)
    continue;
    init_color(color, r, g, b);
    @@ -251,7 +251,7 @@
    int bg = gnt_colors_get_color(bgc);
    g_free(fgc);
    g_free(bgc);
    - if (fg == -1 || bg == -1)
    + if (fg == -EINVAL || bg == -EINVAL)
    continue;
    key = g_ascii_strdown(key, -1);