aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-02-18 20:16:59 +1100
committernyamatongwe <devnull@localhost>2012-02-18 20:16:59 +1100
commit3e126d61579ccd5a5ec1235e1d24548310e64007 (patch)
tree0419073987730dd2c4a8443e5eed65d94f9a9d2e
parente63ad7124356e0dc27c152d6bc417e57a6bde4d0 (diff)
downloadscintilla-mirror-3e126d61579ccd5a5ec1235e1d24548310e64007.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.cxx3
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);