aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render.c b/render.c
index 677856d8..d084a859 100644
--- a/render.c
+++ b/render.c
@@ -3856,8 +3856,8 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
scale = term->scale;
}
- width *= scale;
- height *= scale;
+ width = round(width * scale);
+ height = round(height * scale);
if (width == 0 && height == 0) {
/*