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/Indicator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Indicator.cxx') 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) { -- cgit v1.2.3