render: draw_unfocused_block(): round scale, instead of truncating

This commit is contained in:
Daniel Eklöf 2023-06-22 14:27:16 +02:00
parent 6e2a47287a
commit 44743b5635
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -311,7 +311,7 @@ static void
draw_unfocused_block(const struct terminal *term, pixman_image_t *pix,
const pixman_color_t *color, int x, int y, int cell_cols)
{
const int scale = term->scale;
const int scale = round(term->scale);
const int width = min(min(scale, term->cell_width), term->cell_height);
pixman_image_fill_rectangles(