![]() |
#1 |
Rookie
Join Date: Apr 2012
Posts: 10
![]() |
Balance of subwindows GCU
I pulled b1011f7.
But the sub-windows are too small, and there are large spaces between the main window and sub-windows. I am using -mgcu, 2x2 window configuration, and the terminal size is 150x41. Following patch works for me, but not sure if it is ok for everyone. Code:
diff --git a/src/main-gcu.c b/src/main-gcu.c index ebb2b5a..4365c12 100644 --- a/src/main-gcu.c +++ b/src/main-gcu.c @@ -403,7 +403,8 @@ static void balance_dimension(int *size, int *start, int term_group_index, if (window_size > min_term0_size + subterm_group_count + *size * subterm_group_count) (*size)++; } else { - *size = MIN(min_term0_size, window_size - min_term0_size - comfy_subterm_size - subterm_group_count); + //*size = MIN(min_term0_size, window_size - min_term0_size - comfy_subterm_size - subterm_group_count); + *size = MIN(min_term0_size, window_size - subterm_group_count*(min_term0_size + 1)); } *start = window_size - *size; } else { |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Display glitch with GCU client? | PowerWyrm | Development | 13 | October 15, 2012 21:58 |
[3.2] Quiver slot e) appears as f) in subwindows | PowerWyrm | Vanilla | 5 | April 22, 2011 12:08 |
Mac save file crash bug - dead or retired character, with subwindows set in prefs | Taha | Development | 6 | February 13, 2011 01:24 |
Subwindows and fonts options in curses mode | krugar | Vanilla | 7 | October 3, 2010 18:54 |
How to display subwindows in Linux? | dfreer | Vanilla | 4 | October 4, 2008 11:07 |