mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-09 05:33:58 -04:00
render: use doubles instead of ints
This commit is contained in:
parent
587a9c6ffe
commit
f1fa5a4a37
1 changed files with 4 additions and 4 deletions
8
render.c
8
render.c
|
|
@ -42,10 +42,10 @@ render_cell(struct terminal *term, struct buffer *buf, const struct cell *cell,
|
||||||
= (!term->hide_cursor &&
|
= (!term->hide_cursor &&
|
||||||
(term->cursor.col == col && term->cursor.row == row));
|
(term->cursor.col == col && term->cursor.row == row));
|
||||||
|
|
||||||
int width = term->cell_width;
|
double width = term->cell_width;
|
||||||
int height = term->cell_height;
|
double height = term->cell_height;
|
||||||
int x = col * width;
|
double x = col * width;
|
||||||
int y = row * height;
|
double y = row * height;
|
||||||
|
|
||||||
const struct rgba *foreground = cell->attrs.have_foreground
|
const struct rgba *foreground = cell->attrs.have_foreground
|
||||||
? &cell->attrs.foreground
|
? &cell->attrs.foreground
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue