summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-24 15:59:59 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-24 15:59:59 +0200
commit3e8842e1f8d50263d56b0df3ae37708b4be428d6 (patch)
tree84e832f3c64f7a01911bd069ef7f88c5fa196b24 /src/render/OpenGL.cpp
parent81e36298bf23045b553b51201ace31d1a403ede2 (diff)
fix janky pixel maths with scaled textures
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index bc5d80ca..85dd29be 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -378,8 +378,8 @@ void CHyprOpenGLImpl::renderTextureInternalWithDamage(const CTexture& tex, wlr_b
// so we need to do some maf
const auto TOPLEFT = Vector2D(round, round);
- const auto BOTTOMRIGHT = Vector2D(tex.m_vSize.x - round, tex.m_vSize.y - round);
- const auto FULLSIZE = tex.m_vSize;
+ const auto BOTTOMRIGHT = Vector2D(pBox->width - round, pBox->height - round);
+ const auto FULLSIZE = Vector2D(pBox->width, pBox->height);
static auto *const PMULTISAMPLEEDGES = &g_pConfigManager->getConfigValuePtr("decoration:multisample_edges")->intValue;
// Rounded corners