From dff533101fae1223831eddd66c6685573f221ba9 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 7 Sep 2021 16:28:35 +1000 Subject: Move bulk of PaintMargin into PaintOneMargin which paints one margin. This reduces nesting and indentation. --- src/MarginView.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/MarginView.h') diff --git a/src/MarginView.h b/src/MarginView.h index f73a18858..6088ed3d6 100644 --- a/src/MarginView.h +++ b/src/MarginView.h @@ -36,6 +36,8 @@ public: void DropGraphics() noexcept; void RefreshPixMaps(Surface *surfaceWindow, const ViewStyle &vsDraw); + void PaintOneMargin(Surface *surface, Sci::Line topLine, PRectangle rc, PRectangle rcMargin, size_t margin, + const EditModel &model, const ViewStyle &vs); void PaintMargin(Surface *surface, Sci::Line topLine, PRectangle rc, PRectangle rcMargin, const EditModel &model, const ViewStyle &vs); }; -- cgit v1.2.3