Skip to content
Snippets Groups Projects
Commit a79988ca authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Propagate the non-auto user terminal dimensions to the runtime values, always

Previously, if either of the user terminal dimensions was set to a auto (0)
then we wouldn't propagate the other specific (non-zero) value to the runtime
console dimension. Usually a user will set either both values (cols and rows)
to 0/auto or neither. So this isn't a oft-used configuration combo.
parent b13d2eba
Branches
Tags
No related merge requests found
Pipeline #7718 passed
...@@ -1108,14 +1108,13 @@ void sbbs_t::set_output_rate(enum output_rate speed) ...@@ -1108,14 +1108,13 @@ void sbbs_t::set_output_rate(enum output_rate speed)
void sbbs_t::getdimensions() void sbbs_t::getdimensions()
{ {
if(sys_status & SS_USERON) { if(sys_status & SS_USERON) {
if(!ansi_getdims()) { ansi_getdims();
if(useron.rows >= TERM_ROWS_MIN && useron.rows <= TERM_ROWS_MAX) if(useron.rows >= TERM_ROWS_MIN && useron.rows <= TERM_ROWS_MAX)
rows = useron.rows; rows = useron.rows;
if(useron.cols >= TERM_COLS_MIN && useron.cols <= TERM_COLS_MAX) if(useron.cols >= TERM_COLS_MIN && useron.cols <= TERM_COLS_MAX)
cols = useron.cols; cols = useron.cols;
} }
} }
}
/****************************************************************************/ /****************************************************************************/
/* performs the correct attribute modifications for the Ctrl-A code */ /* performs the correct attribute modifications for the Ctrl-A code */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment