mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-07 04:34:03 -05:00
render: render_timer(): round scaling factor
This commit is contained in:
parent
b656124791
commit
cf280e6655
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -2568,7 +2568,7 @@ render_render_timer(struct terminal *term, struct timespec render_time)
|
||||||
char32_t text[256];
|
char32_t text[256];
|
||||||
mbstoc32(text, usecs_str, ALEN(text));
|
mbstoc32(text, usecs_str, ALEN(text));
|
||||||
|
|
||||||
const int scale = term->scale;
|
const int scale = round(term->scale);
|
||||||
const int cell_count = c32len(text);
|
const int cell_count = c32len(text);
|
||||||
const int margin = 3 * scale;
|
const int margin = 3 * scale;
|
||||||
const int width =
|
const int width =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue