mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 15:25:58 +01:00
renderer: fix rounding in renderSurface
This commit is contained in:
parent
f4f0f35c5b
commit
ce9896204a
1 changed files with 1 additions and 4 deletions
|
@ -35,10 +35,7 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) {
|
|||
|
||||
scaleBox(&windowBox, RDATA->pMonitor->scale);
|
||||
|
||||
static auto* const PROUNDING = &g_pConfigManager->getConfigValuePtr("decoration:rounding")->intValue;
|
||||
|
||||
float rounding = RDATA->dontRound ? 0 : RDATA->rounding == -1 ? *PROUNDING : RDATA->rounding;
|
||||
rounding *= RDATA->pMonitor->scale;
|
||||
float rounding = RDATA->rounding;
|
||||
|
||||
rounding -= 1; // to fix a border issue
|
||||
|
||||
|
|
Loading…
Reference in a new issue