diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-09-03 22:00:27 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-09-03 22:00:27 +0000 |
commit | a60bb74e194f1f7d7171e1769f1f62ba482499e8 (patch) | |
tree | 36f629c27c29e8a52779eaea3ad3c618f5c5c011 /src/term.c | |
parent | 7095e2b718d65f8497fd2e56b17ce4f14c4e959c (diff) | |
download | emacs-a60bb74e194f1f7d7171e1769f1f62ba482499e8.tar.gz |
(term_init): Avoid type-mismatch calling get_frame_size.
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c index a9533ece45a..5515c555be3 100644 --- a/src/term.c +++ b/src/term.c @@ -1585,8 +1585,13 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n", 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) |