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
No related branches found
No related tags found
No related merge requests found
Pipeline #7718 passed
......@@ -1108,12 +1108,11 @@ void sbbs_t::set_output_rate(enum output_rate speed)
void sbbs_t::getdimensions()
{
if(sys_status & SS_USERON) {
if(!ansi_getdims()) {
if(useron.rows >= TERM_ROWS_MIN && useron.rows <= TERM_ROWS_MAX)
rows = useron.rows;
if(useron.cols >= TERM_COLS_MIN && useron.cols <= TERM_COLS_MAX)
cols = useron.cols;
}
ansi_getdims();
if(useron.rows >= TERM_ROWS_MIN && useron.rows <= TERM_ROWS_MAX)
rows = useron.rows;
if(useron.cols >= TERM_COLS_MIN && useron.cols <= TERM_COLS_MAX)
cols = useron.cols;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment