aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-05-03 13:30:18 +1000
committerNeil <nyamatongwe@gmail.com>2014-05-03 13:30:18 +1000
commit8bc5ddbe103f6e34538f0cbe9569201e0a5531ec (patch)
treef60cd26108bfd60fa338a43d430f3797b3bf25f2 /src/Indicator.cxx
parentc6aab7142f462eaeab3fd517f9d876da835b0853 (diff)
downloadscintilla-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/Indicator.cxx')
-rw-r--r--src/Indicator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx
index ac7435156..45dccc8e2 100644
--- a/src/Indicator.cxx
+++ b/src/Indicator.cxx
@@ -20,7 +20,7 @@ using namespace Scintilla;
static PRectangle PixelGridAlign(const PRectangle &rc) {
// Move left and right side to nearest pixel to avoid blurry visuals
- return PRectangle(int(rc.left + 0.5), rc.top, int(rc.right + 0.5), rc.bottom);
+ return PRectangle(int(rc.left + 0.5), int(rc.top), int(rc.right + 0.5), int(rc.bottom));
}
void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine) {