diff options
author | nyamatongwe <unknown> | 2012-02-18 20:16:59 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-02-18 20:16:59 +1100 |
commit | a106cb89734f19c80b4a2319305a352c1293e91e (patch) | |
tree | 4f883b2b3606eb9691c85d94958878122b1cf05a | |
parent | c16b2a3a8624ed908e1aa5bffc339c299f3ef13f (diff) | |
download | scintilla-mirror-a106cb89734f19c80b4a2319305a352c1293e91e.tar.gz |
Bug #3487397. Reduce time spent in idling before allowing paint from 200
to 50 milliseconds to make interaction less laggy.
-rw-r--r-- | win32/ScintillaWin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index e7236024e..c32e07777 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -836,8 +836,9 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam DWORD dwCurrent = GetTickCount(); DWORD dwStart = wParam ? wParam : dwCurrent; + const DWORD maxWorkTime = 50; - if (dwCurrent >= dwStart && dwCurrent > 200 && dwCurrent - 200 < dwStart) + if (dwCurrent >= dwStart && dwCurrent > maxWorkTime && dwCurrent - maxWorkTime < dwStart) PostMessage(MainHWND(), SC_WIN_IDLE, dwStart, 0); } else { SetIdle(false); |