summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorFelix Dick <felix.dick@web.de>2022-09-29 01:40:19 +0200
committerFelix Dick <felix.dick@web.de>2022-09-29 01:40:19 +0200
commit5233746ac5d1a9d00462662b7778ebbacdc523dd (patch)
tree57822d6f443074cd250d593b02cc6ca75e9da98d /src/render/OpenGL.cpp
parentcd2b2c4fbad70118918bb362919580ca7cc29275 (diff)
Change scaledBorderSize to int.
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index e4bbfd68..e49be083 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -780,7 +780,7 @@ void CHyprOpenGLImpl::renderBorder(wlr_box* box, const CColor& col, int round) {
if (*PBORDERSIZE < 1)
return;
- float scaledBorderSize = *PBORDERSIZE * m_RenderData.pMonitor->scale;
+ int scaledBorderSize = *PBORDERSIZE * m_RenderData.pMonitor->scale;
if (round < 1) {
// zero rounding, just lines