From 9e90d41b58d6eafbf90a7435ea40c8c94e0aa1b1 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 3 May 2014 13:30:18 +1000 Subject: Using casts and an alternate PRectangle constructor to make XYPOSITION <-> int conversions and other conversions more consistent. --- src/LineMarker.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/LineMarker.cxx') 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(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); -- cgit v1.2.3