aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LineMarker.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-05-03 12:53:13 +1000
committerNeil <nyamatongwe@gmail.com>2014-05-03 12:53:13 +1000
commit4098bee4df45d3208aaced3f39acc3b2a92977d2 (patch)
tree2f869b6dd45381cdd7a3d37f145c69e0267c39d5 /src/LineMarker.cxx
parent0295c75b63dad5d4bde682e40270fe681eb47d56 (diff)
downloadscintilla-mirror-4098bee4df45d3208aaced3f39acc3b2a92977d2.tar.gz
Convenience Point constructor from integers as common source of shapes.
Diffstat (limited to 'src/LineMarker.cxx')
-rw-r--r--src/LineMarker.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx
index 708e6a320..dec359a91 100644
--- a/src/LineMarker.cxx
+++ b/src/LineMarker.cxx
@@ -380,11 +380,11 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac
} else if (markType == SC_MARK_BOOKMARK) {
int halfHeight = minDim / 3;
Point pts[] = {
- Point(rc.left, centreY-halfHeight),
- Point(rc.right-3, centreY-halfHeight),
- Point(rc.right-3-halfHeight, centreY),
- Point(rc.right-3, centreY+halfHeight),
- Point(rc.left, centreY+halfHeight),
+ Point(static_cast<int>(rc.left), centreY-halfHeight),
+ Point(static_cast<int>(rc.right) - 3, centreY - halfHeight),
+ Point(static_cast<int>(rc.right) - 3 - halfHeight, centreY),
+ Point(static_cast<int>(rc.right) - 3, centreY + halfHeight),
+ Point(static_cast<int>(rc.left), centreY + halfHeight),
};
surface->Polygon(pts, ELEMENTS(pts), fore, back);
} else { // SC_MARK_FULLRECT