render: search_box(): round scaling factor

This commit is contained in:
Daniel Eklöf 2023-06-22 14:35:19 +02:00
parent cf280e6655
commit 30c8d3e652
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -3132,7 +3132,7 @@ render_search_box(struct terminal *term)
const size_t wanted_visible_cells = max(20, total_cells);
xassert(term->scale >= 1);
const int scale = term->scale;
const int scale = round(term->scale);
const size_t margin = 3 * scale;