1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-11-23 11:41:15 -05:00

Allocate video buffers based on MAXROW/MAXCOL even if os window is smaller at initialization.

This commit is contained in:
2015-01-02 20:26:34 +08:00
parent 923d7bdc8e
commit 48ea9279a6
5 changed files with 16 additions and 10 deletions

5
tcap.c
View File

@@ -161,8 +161,9 @@ static void tcapopen(void)
exit(1);
}
#ifdef SIGWINCH
term.t_mrow = int_row > MAXROW ? MAXROW : int_row ;
term.t_mcol = int_col > MAXCOL ? MAXCOL : int_col ;
/* At initialization we use maximum size even if current OS window is smaller */
term.t_mrow = MAXROW ;
term.t_mcol = MAXCOL ;
#else
term.t_mrow = term.t_nrow > MAXROW ? MAXROW : term.t_nrow;
term.t_mcol = term.t_ncol > MAXCOL ? MAXCOL : term.t_ncol;