aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1996-09-03 22:00:27 +0000
committerRichard M. Stallman <[email protected]>1996-09-03 22:00:27 +0000
commit3b12ce121ea35916272eb8d6eebe836574dd464e (patch)
tree537dd95813c813b394738fea12c62976a02344bb
parentf7ad212d03964aaead9cdbb08dd9ac52d816b9ae (diff)
(term_init): Avoid type-mismatch calling get_frame_size.
-rw-r--r--src/term.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c
index a9533ece45..5515c555be 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)