From dd9ae27be2d1b983638337f24685e6458360dfa3 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 19 Mar 2021 15:04:38 +1100 Subject: Implement PopClip to allow local clipping. --- src/Editor.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 5877239f0..c0a0135e1 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1806,6 +1806,8 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { NeedWrapping(pcs->DocFromDisplay(topLine)); } } + if (!view.bufferedDraw) + surfaceWindow->PopClip(); return; } @@ -1818,6 +1820,9 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { } } + if (!view.bufferedDraw) + surfaceWindow->PopClip(); + NotifyPainted(); } -- cgit v1.2.3