aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-02-02 14:25:51 +1100
committerNeil <nyamatongwe@gmail.com>2022-02-02 14:25:51 +1100
commitfd2623102a9bad31258a0ef31ce6a2972ae6ddad (patch)
tree621fa123bdab1e9f4ef94613c0fbf509f2ce36e3 /src/Editor.cxx
parent53ca05457a1d7306defd98ee4a21eb18e6a9be8d (diff)
downloadscintilla-mirror-fd2623102a9bad31258a0ef31ce6a2972ae6ddad.tar.gz
Feature [feature-requests:#1427] Add multithreaded layout which improves
performance significantly for very wide lines.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 342e7de1c..ccf07b6a8 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -6813,6 +6813,13 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
case Message::GetPositionCache:
return view.posCache->GetSize();
+ case Message::SetLayoutThreads:
+ view.SetLayoutThreads(static_cast<unsigned int>(wParam));
+ break;
+
+ case Message::GetLayoutThreads:
+ return view.GetLayoutThreads();
+
case Message::SetScrollWidth:
PLATFORM_ASSERT(wParam > 0);
if ((wParam > 0) && (wParam != static_cast<unsigned int>(scrollWidth))) {