mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
update local info about the screen size
This commit is contained in:
parent
27b6bac88f
commit
7b4e39053b
1 changed files with 2 additions and 0 deletions
|
@ -239,6 +239,8 @@ C_ProcessInput (void)
|
||||||
if (ioctl (fileno (stdout), TIOCGWINSZ, &size) == 0) {
|
if (ioctl (fileno (stdout), TIOCGWINSZ, &size) == 0) {
|
||||||
resizeterm (size.ws_row, size.ws_col);
|
resizeterm (size.ws_row, size.ws_col);
|
||||||
wrefresh (curscr);
|
wrefresh (curscr);
|
||||||
|
getmaxyx (stdscr, screen_y, screen_x);
|
||||||
|
con_linewidth = screen_x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue