diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-08 13:28:33 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-08 13:28:33 +0000 |
| commit | f1fa5a4a372a7cd6aa4a0daa8886738f19dbce95 (patch) | |
| tree | e20736ab7cb17c1ef0f8c986862dbf1b9a6e2b07 | |
| parent | render: use pointers to rgba foreground/background colors (diff) | |
render: use doubles instead of ints
| -rw-r--r-- | render.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |
