From d9c400ac3273a0b0f091f36ae2e120cb2b301570 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 4 Nov 2021 08:53:17 +0530 Subject: [PATCH] Forgot to recalculate height_gl leading to vertically stretched characters for window numbers --- kitty/shaders.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/shaders.c b/kitty/shaders.c index 120eba30a..fb6c0db35 100644 --- a/kitty/shaders.c +++ b/kitty/shaders.c @@ -607,6 +607,7 @@ draw_window_number(OSWindow *os_window, Screen *screen, GLfloat xstart, GLfloat } GLfloat width_gl = 2.f * ((float)lr.width_px) / os_window->viewport_width; + height_gl = 2.f * ((float)lr.height_px) / os_window->viewport_height; left = xstart + (width - width_gl) / 2.f; right = left + width_gl; GLfloat top = ystart - (height - height_gl) / 2.f;