diff -r 94c92c923713 -r 40a1cf2f38f5 src/document.cpp --- a/src/document.cpp Sun Jul 25 13:49:37 2021 +0300 +++ b/src/document.cpp Sun Jul 25 16:26:38 2021 +0300 @@ -95,6 +95,11 @@ this->renderer->setRenderPreferences(newPreferences); } +void Document::setCanvasOverpaintCallback(Canvas::OverpaintCallback fn) +{ + this->renderer->setOverpaintCallback(fn); +} + void Document::selectionChanged(const QSet& newSelection) { if (newSelection.size() == 1)