mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: draw_unfocused_block(): round scale, instead of truncating
This commit is contained in:
parent
6e2a47287a
commit
44743b5635
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue