aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-10-10 09:11:27 +1100
committerNeil <nyamatongwe@gmail.com>2023-10-10 09:11:27 +1100
commitb20c3b551a4a87888cf00e5f7da22d836015a073 (patch)
tree4c2f9fd038f52c0b09c322f2f21d444766ad1994 /src/Indicator.h
parent74876d72fdd85764ecc0a231bdaa711498178df5 (diff)
downloadscintilla-mirror-b20c3b551a4a87888cf00e5f7da22d836015a073.tar.gz
Use global constants for opaque black and white and local constants for greys.
Makes it easier to understand and reduces warnings.
Diffstat (limited to 'src/Indicator.h')
-rw-r--r--src/Indicator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Indicator.h b/src/Indicator.h
index fc17a82c2..5bdccaf33 100644
--- a/src/Indicator.h
+++ b/src/Indicator.h
@@ -15,7 +15,7 @@ struct StyleAndColour {
ColourRGBA fore;
StyleAndColour() noexcept : style(Scintilla::IndicatorStyle::Plain), fore(0, 0, 0) {
}
- StyleAndColour(Scintilla::IndicatorStyle style_, ColourRGBA fore_ = ColourRGBA(0, 0, 0)) noexcept : style(style_), fore(fore_) {
+ StyleAndColour(Scintilla::IndicatorStyle style_, ColourRGBA fore_ = black) noexcept : style(style_), fore(fore_) {
}
bool operator==(const StyleAndColour &other) const noexcept {
return (style == other.style) && (fore == other.fore);
@@ -36,7 +36,7 @@ public:
XYPOSITION strokeWidth = 1.0f;
Indicator() noexcept : under(false), fillAlpha(30), outlineAlpha(50), attributes(Scintilla::IndicFlag::None) {
}
- Indicator(Scintilla::IndicatorStyle style_, ColourRGBA fore_= ColourRGBA(0,0,0), bool under_=false, int fillAlpha_=30, int outlineAlpha_=50) noexcept :
+ Indicator(Scintilla::IndicatorStyle style_, ColourRGBA fore_= black, bool under_=false, int fillAlpha_=30, int outlineAlpha_=50) noexcept :
sacNormal(style_, fore_), sacHover(style_, fore_), under(under_), fillAlpha(fillAlpha_), outlineAlpha(outlineAlpha_), attributes(Scintilla::IndicFlag::None) {
}
void Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine, const PRectangle &rcCharacter, State drawState, int value) const;