aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-09-23 00:06:48 +0100
committervaxerski <[email protected]>2023-09-23 00:06:48 +0100
commit3b1e09e5a18bd1cf137f8f50394aa0c1eaac1e30 (patch)
tree6b93ae929d5494a85a6216a17e84525b4cbf96cb
parent9f68aa33eaa6fc353264debfda51c13f861240fd (diff)
downloadHyprland-3b1e09e5a18bd1cf137f8f50394aa0c1eaac1e30.tar.gz
Hyprland-3b1e09e5a18bd1cf137f8f50394aa0c1eaac1e30.zip
renderer: fix missing dontRound check in renderSurface
fixes 3296
-rw-r--r--src/render/Renderer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 22a14a25..6dcf0b44 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -42,6 +42,9 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) {
rounding -= 1; // to fix a border issue
+ if (RDATA->dontRound)
+ rounding = 0;
+
const bool CANDISABLEBLEND = RDATA->alpha >= 1.f && rounding == 0 && surface->opaque;
if (CANDISABLEBLEND)