Mercurial > emacs
changeset 16093:4c74d7f1cfa6
(term_init): Avoid type-mismatch calling get_frame_size.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 03 Sep 1996 22:00:27 +0000 |
parents | 439578110829 |
children | 4199e40152fb |
files | src/term.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/term.c Tue Sep 03 21:51:08 1996 +0000 +++ b/src/term.c Tue Sep 03 22:00:27 1996 +0000 @@ -1585,8 +1585,13 @@ term_get_fkeys (address); /* Get frame size from system, or else from termcap. */ - get_frame_size (&FRAME_WIDTH (selected_frame), - &FRAME_HEIGHT (selected_frame)); + { + int height, width; + get_frame_size (&width, &height); + FRAME_WIDTH (selected_frame) = width; + FRAME_HEIGHT (selected_frame) = height; + } + if (FRAME_WIDTH (selected_frame) <= 0) FRAME_WIDTH (selected_frame) = tgetnum ("co"); if (FRAME_HEIGHT (selected_frame) <= 0)