0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.0.0146: termguicolors uses wrong colors on MS-Windows with ConEmu

Problem:    When using 'termguicolors' on MS-Windows the RGB definition causes
            the colors to be wrong.
Solution:   Undefined RGB and use our own. (Gabriel Barta)
This commit is contained in:
Bram Moolenaar 2017-01-06 18:16:19 +01:00
parent 29891c4ed4
commit 287266527a
2 changed files with 8 additions and 2 deletions

View File

@ -6069,8 +6069,12 @@ hex_digit(int c)
guicolor_T
gui_get_color_cmn(char_u *name)
{
/* On MS-Windows an RGB macro is available and it's different from ours,
* but does what is needed. */
/* On MS-Windows an RGB macro is available and it produces 0x00bbggrr color
* values as used by the MS-Windows GDI api. It should be used only for
* MS-Windows GDI builds. */
# if defined(RGB) && defined(WIN32) && !defined(FEAT_GUI)
# undef RGB
# endif
# ifndef RGB
# define RGB(r, g, b) ((r<<16) | (g<<8) | (b))
# endif

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
146,
/**/
145,
/**/