diff options
author | vaxerski <[email protected]> | 2023-09-23 00:06:48 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-09-23 00:06:48 +0100 |
commit | 3b1e09e5a18bd1cf137f8f50394aa0c1eaac1e30 (patch) | |
tree | 6b93ae929d5494a85a6216a17e84525b4cbf96cb | |
parent | 9f68aa33eaa6fc353264debfda51c13f861240fd (diff) | |
download | Hyprland-3b1e09e5a18bd1cf137f8f50394aa0c1eaac1e30.tar.gz Hyprland-3b1e09e5a18bd1cf137f8f50394aa0c1eaac1e30.zip |
renderer: fix missing dontRound check in renderSurface
fixes 3296
-rw-r--r-- | src/render/Renderer.cpp | 3 |
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) |