diff options
Diffstat (limited to 'src/CallTip.cxx')
-rw-r--r-- | src/CallTip.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx index 4742f66e4..eea592489 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -108,14 +108,14 @@ void DrawArrow(Surface *surface, const PRectangle &rc, bool upArrow, ColourRGBA constexpr XYPOSITION pixelMove = 0.0f; if (upArrow) { // Up arrow - Point pts[] = { + const Point pts[] = { Point(centreX - halfWidth + pixelMove, centreY + quarterWidth + 0.5f), Point(centreX + halfWidth + pixelMove, centreY + quarterWidth + 0.5f), Point(centreX + pixelMove, centreY - halfWidth + quarterWidth + 0.5f), }; surface->Polygon(pts, std::size(pts), FillStroke(colourBG)); } else { // Down arrow - Point pts[] = { + const Point pts[] = { Point(centreX - halfWidth + pixelMove, centreY - quarterWidth + 0.5f), Point(centreX + halfWidth + pixelMove, centreY - quarterWidth + 0.5f), Point(centreX + pixelMove, centreY + halfWidth - quarterWidth + 0.5f), |