diff options
author | mitchell <unknown> | 2018-05-25 13:33:38 -0400 |
---|---|---|
committer | mitchell <unknown> | 2018-05-25 13:33:38 -0400 |
commit | 43566e4211e18057662ff5d8c8d3996b73090d43 (patch) | |
tree | 0b501aa992e9ccdcc36b25d10d72a51785a9a515 /src/Indicator.cxx | |
parent | 7a4fd484cc8229d3518039c82d950b4fa7f673cb (diff) | |
download | scintilla-mirror-43566e4211e18057662ff5d8c8d3996b73090d43.tar.gz |
Backport: Modernize Platform.h (3) - update Surface to delete WidthChar, use size_t for Polygon and delete the standard copy and assignment methods.
Backport of changeset 6940:89fd29243232.
Diffstat (limited to 'src/Indicator.cxx')
-rw-r--r-- | src/Indicator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx index f9d0ca04a..35b2c3e5b 100644 --- a/src/Indicator.cxx +++ b/src/Indicator.cxx @@ -16,6 +16,7 @@ #include "Platform.h" #include "Scintilla.h" +#include "StringCopy.h" #include "IntegerRectangle.h" #include "Indicator.h" #include "XPM.h" @@ -189,7 +190,7 @@ void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &r Point(ix + pixelHeight, iy + pixelHeight), // Right Point(ix, iy) // Top }; - surface->Polygon(pts, 3, sacDraw.fore, sacDraw.fore); + surface->Polygon(pts, ELEMENTS(pts), sacDraw.fore, sacDraw.fore); } } else { // Either INDIC_PLAIN or unknown surface->MoveTo(irc.left, ymid); |