diff options
Diffstat (limited to 'src/helpers/Box.cpp')
| -rw-r--r-- | src/helpers/Box.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/helpers/Box.cpp b/src/helpers/Box.cpp index e71ed622..55300f5f 100644 --- a/src/helpers/Box.cpp +++ b/src/helpers/Box.cpp @@ -58,12 +58,12 @@ CBox& CBox::applyFromWlr() { } CBox& CBox::round() { - float newW = x + w - std::floor(x); - float newH = y + h - std::floor(y); - x = std::floor(x); - y = std::floor(y); - w = std::floor(newW); - h = std::floor(newH); + float newW = x + w - std::round(x); + float newH = y + h - std::round(y); + x = std::round(x); + y = std::round(y); + w = std::round(newW); + h = std::round(newH); return *this; } |
