mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
updated for version 7.0160
This commit is contained in:
@@ -4291,13 +4291,41 @@ gui_mch_set_bg_color(color)
|
|||||||
RGBBackColor(&TheColor);
|
RGBBackColor(&TheColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RGBColor specialColor;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set the current text speail color. TODO
|
* Set the current text special color.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gui_mch_set_sp_color(color)
|
gui_mch_set_sp_color(color)
|
||||||
guicolor_T color;
|
guicolor_T color;
|
||||||
{
|
{
|
||||||
|
specialColor.red = Red(color) * 0x0101;
|
||||||
|
specialColor.green = Green(color) * 0x0101;
|
||||||
|
specialColor.blue = Blue(color) * 0x0101;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Draw undercurl at the bottom of the character cell.
|
||||||
|
*/
|
||||||
|
static void
|
||||||
|
draw_undercurl(int flags, int row, int col, int cells)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
int offset;
|
||||||
|
const static int val[8] = {1, 0, 0, 0, 1, 2, 2, 2 };
|
||||||
|
int y = FILL_Y(row + 1) - 1;
|
||||||
|
|
||||||
|
RGBForeColor(&specialColor);
|
||||||
|
|
||||||
|
offset = val[FILL_X(col) % 8];
|
||||||
|
MoveTo(FILL_X(col), y - offset);
|
||||||
|
|
||||||
|
for (i = FILL_X(col); i < FILL_X(col + cells); ++i)
|
||||||
|
{
|
||||||
|
offset = val[i % 8];
|
||||||
|
LineTo(i, y - offset);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -4451,6 +4479,9 @@ gui_mch_draw_string(row, col, s, len, flags)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (flags & DRAW_UNDERC)
|
||||||
|
draw_undercurl(flags, row, col, len);
|
||||||
|
|
||||||
#ifdef FEAT_MBYTE
|
#ifdef FEAT_MBYTE
|
||||||
vim_free(tofree);
|
vim_free(tofree);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -36,5 +36,5 @@
|
|||||||
#define VIM_VERSION_NODOT "vim70aa"
|
#define VIM_VERSION_NODOT "vim70aa"
|
||||||
#define VIM_VERSION_SHORT "7.0aa"
|
#define VIM_VERSION_SHORT "7.0aa"
|
||||||
#define VIM_VERSION_MEDIUM "7.0aa ALPHA"
|
#define VIM_VERSION_MEDIUM "7.0aa ALPHA"
|
||||||
#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Nov 25)"
|
#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Nov 26)"
|
||||||
#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Nov 25, compiled "
|
#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Nov 26, compiled "
|
||||||
|
Reference in New Issue
Block a user