commit | 26af85d97ba1ed0ade6cdd41890ca04ed879b9c7 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jul 23 16:45:10 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jul 23 16:45:10 2017 +0200 |
tree | c34204de31a63785f2801279402fee3fc84ee9b2 | |
parent | eeac67788677a9ea81bcab69f81b4fc22c2adc00 [diff] [blame] |
patch 8.0.0755: terminal window does not have colors in the GUI Problem: Terminal window does not have colors in the GUI. Solution: Lookup the GUI color.
diff --git a/src/term.c b/src/term.c index fa0be05..26527fb 100644 --- a/src/term.c +++ b/src/term.c
@@ -6399,4 +6399,14 @@ return INVALCOLOR; } + + guicolor_T +gui_get_rgb_color_cmn(int r, int g, int b) +{ + guicolor_T color = RGB(r, g, b); + + if (color > 0xffffff) + return INVALCOLOR; + return color; +} #endif