diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-06-22 12:27:16 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-06-29 13:38:22 +0000 |
| commit | 44743b5635aeee2d9cbb2bae33d5dcbc374be8da (patch) | |
| tree | 6824b3bb15ebf2a7e4da9db3b95672ac95bb8dee /render.c | |
| parent | wayland: pointer.scale: convert to float (diff) | |
render: draw_unfocused_block(): round scale, instead of truncating
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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( |
