mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
render: resize: TIOCSWINSZ: don't include padding in ws_{x,y}pixel
This commit is contained in:
parent
1623fc0c0a
commit
727be358df
1 changed files with 2 additions and 2 deletions
4
render.c
4
render.c
|
|
@ -1097,8 +1097,8 @@ render_resize(struct terminal *term, int width, int height)
|
|||
&(struct winsize){
|
||||
.ws_row = term->rows,
|
||||
.ws_col = term->cols,
|
||||
.ws_xpixel = term->width,
|
||||
.ws_ypixel = term->height}) == -1)
|
||||
.ws_xpixel = term->cols * term->cell_width,
|
||||
.ws_ypixel = term->rows * term->cell_height}) == -1)
|
||||
{
|
||||
LOG_ERRNO("TIOCSWINSZ");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue