Add window_columns() function to determine number of columns used for splitting window output

Replaces two open-coded versions of the same pattern.
This commit is contained in:
Kevin Easton
2018-05-10 17:02:16 +10:00
parent eb14b44413
commit 14a501bd04
4 changed files with 16 additions and 9 deletions

View File

@@ -37,6 +37,7 @@
Window *BX_new_window (struct ScreenStru *);
void BX_delete_window (Window *);
void BX_add_to_invisible_list (Window *);
int window_columns(Window *window);
Window *BX_add_to_window_list (struct ScreenStru *, Window *);
void BX_remove_from_window_from_screen (Window *);
void BX_recalculate_window_positions (struct ScreenStru *);