refactor: grid->rows and grid->cols

This commit is contained in:
bfredl
2022-05-18 13:06:02 +02:00
parent d7dd600716
commit 028329850e
13 changed files with 186 additions and 186 deletions

View File

@@ -6865,8 +6865,8 @@ void screenchar_adjust_grid(ScreenGrid **grid, int *row, int *col)
// have its own buffer, this should just read from it instead.
msg_scroll_flush();
if (msg_grid.chars && msg_grid.comp_index > 0 && *row >= msg_grid.comp_row
&& *row < (msg_grid.Rows + msg_grid.comp_row)
&& *col < msg_grid.Columns) {
&& *row < (msg_grid.rows + msg_grid.comp_row)
&& *col < msg_grid.cols) {
*grid = &msg_grid;
*row -= msg_grid.comp_row;
}