From 6b444111ecfe47a3f94293c3959cf197e3415735 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 19 Mar 2021 14:12:20 +1100 Subject: Add Platform::Supports for SupportsFeature API. --- src/Editor.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 2001eafaf..5877239f0 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5190,8 +5190,9 @@ void Editor::QueueIdleWork(WorkItems items, Sci::Position upTo) { workNeeded.Need(items, upTo); } -int Editor::SupportsFeature(int /* feature */) { - return 0; +int Editor::SupportsFeature(int feature) { + AutoSurface surface(this); + return surface->Supports(feature); } bool Editor::PaintContains(PRectangle rc) { -- cgit v1.2.3