aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-01 13:48:29 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-01 13:48:29 +1000
commitf3fea32a6d3f1cecb81e85d8f4726816f8542dda (patch)
tree9d4715e921a5aeb9252b8230e493675cbcdd1a0f /src/Indicator.cxx
parent6065b35281afe152b61d346850bbcdd8e26419ee (diff)
downloadscintilla-mirror-f3fea32a6d3f1cecb81e85d8f4726816f8542dda.tar.gz
Use round and floor instead of casts.
Diffstat (limited to 'src/Indicator.cxx')
-rw-r--r--src/Indicator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx
index 077d12740..a18238cde 100644
--- a/src/Indicator.cxx
+++ b/src/Indicator.cxx
@@ -23,8 +23,8 @@ using namespace Scintilla;
static PRectangle PixelGridAlign(const PRectangle &rc) {
// Move left and right side to nearest pixel to avoid blurry visuals
- return PRectangle::FromInts(static_cast<int>(lround(rc.left)), static_cast<int>(rc.top),
- static_cast<int>(lround(rc.right)), static_cast<int>(rc.bottom));
+ return PRectangle(round(rc.left), floor(rc.top),
+ round(rc.right), floor(rc.bottom));
}
void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine, const PRectangle &rcCharacter, DrawState drawState, int value) const {