From 3b1e09e5a18bd1cf137f8f50394aa0c1eaac1e30 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 23 Sep 2023 00:06:48 +0100 Subject: [PATCH] renderer: fix missing dontRound check in renderSurface fixes 3296 --- src/render/Renderer.cpp | 3 +++ 1 file changed, 3 insertions(+) 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)