aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MarginView.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-09-07 16:28:35 +1000
committerNeil <nyamatongwe@gmail.com>2021-09-07 16:28:35 +1000
commitdff533101fae1223831eddd66c6685573f221ba9 (patch)
tree4b6377b046228f2b6988a85d715eb5c57fda54da /src/MarginView.h
parent044a2a4b7414c82030112cc1be7cc810c21d2e48 (diff)
downloadscintilla-mirror-dff533101fae1223831eddd66c6685573f221ba9.tar.gz
Move bulk of PaintMargin into PaintOneMargin which paints one margin.
This reduces nesting and indentation.
Diffstat (limited to 'src/MarginView.h')
-rw-r--r--src/MarginView.h2
1 files changed, 2 insertions, 0 deletions
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);
};