diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 5 | ||||
-rw-r--r-- | src/Platform.h | 1 |
2 files changed, 4 insertions, 2 deletions
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) { diff --git a/src/Platform.h b/src/Platform.h index f65a4e1db..8075f0ec6 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -180,6 +180,7 @@ public: virtual void InitPixMap(int width, int height, Surface *surface_, WindowID wid)=0; virtual void Release() noexcept=0; + virtual int Supports(int feature) noexcept=0; virtual bool Initialised()=0; virtual void PenColour(ColourDesired fore)=0; virtual int LogPixelsY()=0; |