Forgot to recalculate height_gl leading to vertically stretched characters for window numbers

This commit is contained in:
Kovid Goyal 2021-11-04 08:53:17 +05:30
parent 377607730c
commit d9c400ac32
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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;