forked from aniani/vim
updated for version 7.4.393
Problem: Text drawing on newer MS-Windows systems is suboptimal. Some multi-byte characters are not displayed, even though the same font in Notepad can display them. (Srinath Avadhanula) Solution: Add the 'renderoptions' option to enable Direct-X drawing. (Taro Muraoka)
This commit is contained in:
17
src/option.c
17
src/option.c
@@ -2124,6 +2124,15 @@ static struct vimoption
|
||||
{"remap", NULL, P_BOOL|P_VI_DEF,
|
||||
(char_u *)&p_remap, PV_NONE,
|
||||
{(char_u *)TRUE, (char_u *)0L} SCRIPTID_INIT},
|
||||
{"renderoptions", "rop", P_STRING|P_COMMA|P_RCLR|P_VI_DEF,
|
||||
#ifdef FEAT_RENDER_OPTIONS
|
||||
(char_u *)&p_rop, PV_NONE,
|
||||
{(char_u *)"", (char_u *)0L}
|
||||
#else
|
||||
(char_u *)NULL, PV_NONE,
|
||||
{(char_u *)NULL, (char_u *)0L}
|
||||
#endif
|
||||
SCRIPTID_INIT},
|
||||
{"report", NULL, P_NUM|P_VI_DEF,
|
||||
(char_u *)&p_report, PV_NONE,
|
||||
{(char_u *)2L, (char_u *)0L} SCRIPTID_INIT},
|
||||
@@ -6999,6 +7008,14 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_RENDER_OPTIONS)
|
||||
else if (varp == &p_rop && gui.in_use)
|
||||
{
|
||||
if (!gui_mch_set_rendering_options(p_rop))
|
||||
errmsg = e_invarg;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Options that are a list of flags. */
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user