diff options
author | Neil <nyamatongwe@gmail.com> | 2014-05-03 20:21:13 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-05-03 20:21:13 +1000 |
commit | ce6e4b52401b29e0f34888250b8c8cbb5821bc4d (patch) | |
tree | 0a82dc31e155cc9fd6fed6dbd3e23301fd4948a8 /src/CallTip.cxx | |
parent | 541c8d5574236af65f614289d03db2eb74762c56 (diff) | |
download | scintilla-mirror-ce6e4b52401b29e0f34888250b8c8cbb5821bc4d.tar.gz |
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.
Diffstat (limited to 'src/CallTip.cxx')
-rw-r--r-- | src/CallTip.cxx | 12 |
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); } |