mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: multiply width/height with *new* scale factor, not old
This commit is contained in:
parent
d7aaeaedee
commit
c1903f5522
1 changed files with 2 additions and 2 deletions
4
render.c
4
render.c
|
|
@ -706,8 +706,8 @@ render_resize(struct terminal *term, int width, int height)
|
|||
scale = 1;
|
||||
}
|
||||
|
||||
width *= term->scale;
|
||||
height *= term->scale;
|
||||
width *= scale;
|
||||
height *= scale;
|
||||
|
||||
if (width == 0 && height == 0) {
|
||||
/* Assume we're not fully up and running yet */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue