summaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-01-31 20:51:47 +0100
committerBram Moolenaar <Bram@vim.org>2018-01-31 20:51:47 +0100
commita338adcf222b6a24e26ea5ae6a2ad27f914acb38 (patch)
tree0ffe28d0a3a60c2c1444a991514505c448d4335b /src/message.c
parent37badc898b8d167e11553b6d05908ffd35928a6e (diff)
patch 8.0.1449: slow redrawing with DirectXv8.0.1449
Problem: Slow redrawing with DirectX. Solution: Avoid calling gui_mch_flush() unnecessarily, especially when updating the cursor. (Ken Takata, closes #2560)
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c
index c40b6cf15b..211403384a 100644
--- a/src/message.c
+++ b/src/message.c
@@ -2316,7 +2316,9 @@ msg_scroll_up(void)
gui_undraw_cursor();
#endif
/* scrolling up always works */
+ mch_disable_flush();
screen_del_lines(0, 0, 1, (int)Rows, TRUE, 0, NULL);
+ mch_enable_flush();
if (!can_clear((char_u *)" "))
{