From a1104a01eb27a3ca87b1d04d75189c5ee40c7651 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 23 Sep 2015 09:33:21 +1000 Subject: When SC_MARK_UNDERLINE if not assigned to a margin, stop drawing the whole line. Optimise drawing of markers that appear in the text area. --- src/ViewStyle.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ViewStyle.h') diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 930ad104c..242e7e38e 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -114,6 +114,7 @@ public: int leftMarginWidth; ///< Spacing margin on left of text int rightMarginWidth; ///< Spacing margin on right of text int maskInLine; ///< Mask for markers to be put into text because there is nowhere for them to go in margin + int maskDrawInText; ///< Mask for markers that always draw in text MarginStyle ms[SC_MAX_MARGIN+1]; int fixedColumnWidth; ///< Total width of margins bool marginInside; ///< true: margin included in text view, false: separate views @@ -160,6 +161,7 @@ public: ViewStyle(); ViewStyle(const ViewStyle &source); ~ViewStyle(); + void CalculateMarginWidthAndMask(); void Init(size_t stylesSize_=256); void Refresh(Surface &surface, int tabInChars); void ReleaseAllExtendedStyles(); -- cgit v1.2.3