renderer: fix rounding in renderSurface

This commit is contained in:
vaxerski 2023-07-19 20:06:19 +02:00
parent f4f0f35c5b
commit ce9896204a

View file

@ -35,10 +35,7 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) {
scaleBox(&windowBox, RDATA->pMonitor->scale); scaleBox(&windowBox, RDATA->pMonitor->scale);
static auto* const PROUNDING = &g_pConfigManager->getConfigValuePtr("decoration:rounding")->intValue; float rounding = RDATA->rounding;
float rounding = RDATA->dontRound ? 0 : RDATA->rounding == -1 ? *PROUNDING : RDATA->rounding;
rounding *= RDATA->pMonitor->scale;
rounding -= 1; // to fix a border issue rounding -= 1; // to fix a border issue