Skip to content

Commit

Permalink
GameEngine.h:
Browse files Browse the repository at this point in the history
* Moving the tie to inside the enable_terminal_window_resize if-scope.
  • Loading branch information
razterizer committed Oct 10, 2024
1 parent 28c7af1 commit d7d17a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GameEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ class GameEngine
return_cursor();
hide_cursor();

std::tie(term_win_rows, term_win_cols) = get_terminal_window_size();
if (m_params.enable_terminal_window_resize)
{
std::tie(term_win_rows, term_win_cols) = get_terminal_window_size();
int new_rows = term_win_rows;
int new_cols = term_win_cols;
math::maximize(new_rows, NR + 1);
Expand Down

0 comments on commit d7d17a6

Please sign in to comment.