aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.cxx
diff options
context:
space:
mode:
authormitchell <unknown>2018-05-25 13:33:38 -0400
committermitchell <unknown>2018-05-25 13:33:38 -0400
commit43566e4211e18057662ff5d8c8d3996b73090d43 (patch)
tree0b501aa992e9ccdcc36b25d10d72a51785a9a515 /src/Indicator.cxx
parent7a4fd484cc8229d3518039c82d950b4fa7f673cb (diff)
downloadscintilla-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.cxx3
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);