From: Richard M. Stallman Date: Tue, 3 Sep 1996 22:00:27 +0000 (+0000) Subject: (term_init): Avoid type-mismatch calling get_frame_size. X-Git-Tag: emacs-20.1~3851 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3b12ce121ea35916272eb8d6eebe836574dd464e;p=emacs.git (term_init): Avoid type-mismatch calling get_frame_size. --- 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)