diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-01 13:48:29 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-01 13:48:29 +1000 |
commit | f3fea32a6d3f1cecb81e85d8f4726816f8542dda (patch) | |
tree | 9d4715e921a5aeb9252b8230e493675cbcdd1a0f | |
parent | 6065b35281afe152b61d346850bbcdd8e26419ee (diff) | |
download | scintilla-mirror-f3fea32a6d3f1cecb81e85d8f4726816f8542dda.tar.gz |
Use round and floor instead of casts.
-rw-r--r-- | src/Indicator.cxx | 4 |
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 { |