From f1fa5a4a372a7cd6aa4a0daa8886738f19dbce95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 8 Jul 2019 15:28:33 +0200 Subject: [PATCH] render: use doubles instead of ints --- render.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/render.c b/render.c index 9a290a97..4b307e7f 100644 --- a/render.c +++ b/render.c @@ -42,10 +42,10 @@ render_cell(struct terminal *term, struct buffer *buf, const struct cell *cell, = (!term->hide_cursor && (term->cursor.col == col && term->cursor.row == row)); - int width = term->cell_width; - int height = term->cell_height; - int x = col * width; - int y = row * height; + double width = term->cell_width; + double height = term->cell_height; + double x = col * width; + double y = row * height; const struct rgba *foreground = cell->attrs.have_foreground ? &cell->attrs.foreground