diff options
Diffstat (limited to 'src/Indicator.cxx')
| -rw-r--r-- | src/Indicator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx index 1d594d214..742e59b75 100644 --- a/src/Indicator.cxx +++ b/src/Indicator.cxx @@ -24,8 +24,8 @@ using namespace Scintilla; static PRectangle PixelGridAlign(const PRectangle &rc) noexcept { // Move left and right side to nearest pixel to avoid blurry visuals - return PRectangle(round(rc.left), std::floor(rc.top), - round(rc.right), std::floor(rc.bottom)); + return PRectangle(Sci::round(rc.left), std::floor(rc.top), + Sci::round(rc.right), std::floor(rc.bottom)); } void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine, const PRectangle &rcCharacter, DrawState drawState, int value) const { @@ -202,7 +202,7 @@ void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &r if (rcCharacter.Width() >= 0.1) { const XYPOSITION pixelHeight = std::floor(rc.Height() - 1.0f); // 1 pixel onto next line if multiphase const XYPOSITION x = (sacDraw.style == INDIC_POINT) ? (rcCharacter.left) : ((rcCharacter.right + rcCharacter.left) / 2); - const XYPOSITION ix = round(x); + const XYPOSITION ix = Sci::round(x); const XYPOSITION iy = std::floor(rc.top + 1.0f); Point pts[] = { Point(ix - pixelHeight, iy + pixelHeight), // Left |
