diff options
author | Neil <nyamatongwe@gmail.com> | 2014-05-03 13:30:18 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-05-03 13:30:18 +1000 |
commit | 8bc5ddbe103f6e34538f0cbe9569201e0a5531ec (patch) | |
tree | f60cd26108bfd60fa338a43d430f3797b3bf25f2 /src/LineMarker.cxx | |
parent | c6aab7142f462eaeab3fd517f9d876da835b0853 (diff) | |
download | scintilla-mirror-8bc5ddbe103f6e34538f0cbe9569201e0a5531ec.tar.gz |
Using casts and an alternate PRectangle constructor to make XYPOSITION <-> int
conversions and other conversions more consistent.
Diffstat (limited to 'src/LineMarker.cxx')
-rw-r--r-- | src/LineMarker.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index dec359a91..3bf671b6e 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -344,11 +344,11 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac character, 1, fore, back); } else if (markType == SC_MARK_DOTDOTDOT) { - int right = centreX - 6; + XYPOSITION right = static_cast<XYPOSITION>(centreX - 6); for (int b=0; b<3; b++) { PRectangle rcBlob(right, rc.bottom - 4, right + 2, rc.bottom-2); surface->FillRectangle(rcBlob, fore); - right += 5; + right += 5.0f; } } else if (markType == SC_MARK_ARROWS) { surface->PenColour(fore); |