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:
5
tcap.c
5
tcap.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user