aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CallTip.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/CallTip.cxx')
-rw-r--r--src/CallTip.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx
index 1b40c185d..2eab1146f 100644
--- a/src/CallTip.cxx
+++ b/src/CallTip.cxx
@@ -135,14 +135,14 @@ void CallTip::DrawChunk(Surface *surface, int &x, const char *s,
Point::FromInts(centreX + halfWidth, centreY + quarterWidth),
Point::FromInts(centreX, centreY - halfWidth + quarterWidth),
};
- surface->Polygon(pts, ELEMENTS(pts), colourBG, colourBG);
+ surface->Polygon(pts, std::size(pts), colourBG, colourBG);
} else { // Down arrow
Point pts[] = {
Point::FromInts(centreX - halfWidth, centreY - quarterWidth),
Point::FromInts(centreX + halfWidth, centreY - quarterWidth),
Point::FromInts(centreX, centreY + halfWidth - quarterWidth),
};
- surface->Polygon(pts, ELEMENTS(pts), colourBG, colourBG);
+ surface->Polygon(pts, std::size(pts), colourBG, colourBG);
}
}
offsetMain = xEnd;