From 6d66c870779980639e5ecc61ecc514856e8bcaec Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 11 Oct 2025 09:13:01 +0530 Subject: [PATCH] Cleanup previous PR Fixes #9091 --- docs/changelog.rst | 3 +++ kitty/decorations.c | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index ea5d358a5..b1e35e553 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -144,6 +144,9 @@ Detailed list of changes - Fix a regression in 0.43.0 that caused a black flicker when closing a tab in the presence of a background image (:iss:`9060`) +- Further improvements to rounded corner rendering, especially at low DPI + (:pull:`9091`) + - Splits layout: Fix a bug that could cause a corrupted layout in some circumstances (:iss:`9059`) diff --git a/kitty/decorations.c b/kitty/decorations.c index cf1bc002a..a1ff59e31 100644 --- a/kitty/decorations.c +++ b/kitty/decorations.c @@ -7,7 +7,6 @@ #include "decorations.h" #include "state.h" -#include typedef uint32_t uint; @@ -315,9 +314,6 @@ add_vholes(Canvas *self, uint level, uint num) { } } -static double clamp_double(double value, double lower, double upper); -static double smoothstep(double edge0, double edge1, double x); - static Range hline_limits(Canvas *self, uint y, uint level) { uint sz = thickness(self, level, false); @@ -328,8 +324,6 @@ hline_limits(Canvas *self, uint y, uint level) { static void draw_hline(Canvas *self, uint x1, uint x2, uint y, uint level) { - if (x1 >= x2 || y >= self->height) return; - // Draw a horizontal line between [x1, x2) centered at y with the thickness given by level and self->supersample_factor Range r = hline_limits(self, y, level); for (uint y = r.start; y < r.end; y++) {