diff options
author | Neil <nyamatongwe@gmail.com> | 2014-05-03 12:53:13 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-05-03 12:53:13 +1000 |
commit | f2f9466cff10eef54bd165bbfb99bbcc707a0cf4 (patch) | |
tree | dc5e982fd477996c745a35ad0569ea2e0393f944 /src/LineMarker.cxx | |
parent | c985bfbe6de31c510fada1bacccabf338e577c30 (diff) | |
download | scintilla-mirror-f2f9466cff10eef54bd165bbfb99bbcc707a0cf4.tar.gz |
Convenience Point constructor from integers as common source of shapes.
Diffstat (limited to 'src/LineMarker.cxx')
-rw-r--r-- | src/LineMarker.cxx | 10 |
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 |