aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CallTip.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/CallTip.cxx')
-rw-r--r--src/CallTip.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx
index c1a3582f3..f6f3f10ea 100644
--- a/src/CallTip.cxx
+++ b/src/CallTip.cxx
@@ -125,16 +125,16 @@ void CallTip::DrawChunk(Surface *surface, int &x, const char *s,
if (upArrow) { // Up arrow
Point pts[] = {
- Point(centreX - halfWidth, centreY + quarterWidth),
- Point(centreX + halfWidth, centreY + quarterWidth),
- Point(centreX, centreY - halfWidth + quarterWidth),
+ 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);
} else { // Down arrow
Point pts[] = {
- Point(centreX - halfWidth, centreY - quarterWidth),
- Point(centreX + halfWidth, centreY - quarterWidth),
- Point(centreX, centreY + halfWidth - quarterWidth),
+ 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);
}