From 97ae63fa3914ac9894a319c0c75eeeffe96b16e9 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 3 May 2014 20:21:13 +1000 Subject: Replacing the int-based constructors for Point and PRectangle with FromInts static methods as there were too many failures with mixed types and not-quite matching types. --- src/CallTip.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/CallTip.cxx') 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); } -- cgit v1.2.3