diff options
author | vaxerski <[email protected]> | 2022-08-10 18:22:01 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-08-10 18:22:01 +0200 |
commit | 96f3b624290f15ee94467028296ac464faa43c26 (patch) | |
tree | 575faa38fc613f618c5abae308577099df9dcad2 /src/render/Renderer.cpp | |
parent | 0162da7a7c2517719d8311e18dd057a572fc5b2a (diff) | |
download | Hyprland-96f3b624290f15ee94467028296ac464faa43c26.tar.gz Hyprland-96f3b624290f15ee94467028296ac464faa43c26.zip |
multiply by scale in rounding
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r-- | src/render/Renderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index c21cd781..95bb27f8 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -34,7 +34,7 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) { static auto *const PROUNDING = &g_pConfigManager->getConfigValuePtr("decoration:rounding")->intValue; float rounding = RDATA->dontRound ? 0 : RDATA->rounding == -1 ? *PROUNDING : RDATA->rounding; - rounding /= RDATA->output->scale; + rounding *= RDATA->output->scale; if (RDATA->surface && surface == RDATA->surface) { if (wlr_surface_is_xwayland_surface(surface) && !wlr_xwayland_surface_from_wlr_surface(surface)->has_alpha && RDATA->fadeAlpha * RDATA->alpha == 255.f) { @@ -259,7 +259,7 @@ void CHyprRenderer::renderWindow(CWindow* pWindow, CMonitor* pMonitor, timespec* static auto *const PROUNDING = &g_pConfigManager->getConfigValuePtr("decoration:rounding")->intValue; float rounding = renderdata.dontRound ? 0 : renderdata.rounding == -1 ? *PROUNDING : renderdata.rounding; - rounding /= pMonitor->scale; + rounding *= pMonitor->scale; auto col = g_pHyprOpenGL->m_pCurrentWindow->m_cRealBorderColor.col(); col.a *= renderdata.fadeAlpha * renderdata.alpha / 255.f; |