Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old June 15, 2013, 18:45   #1
Kramborn
Rookie
 
Join Date: Apr 2012
Posts: 10
Kramborn is on a distinguished road
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 {
Kramborn is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Display glitch with GCU client? PowerWyrm Development 13 October 15, 2012 20:58
[3.2] Quiver slot e) appears as f) in subwindows PowerWyrm Vanilla 5 April 22, 2011 11:08
Mac save file crash bug - dead or retired character, with subwindows set in prefs Taha Development 6 February 13, 2011 00:24
Subwindows and fonts options in curses mode krugar Vanilla 7 October 3, 2010 17:54
How to display subwindows in Linux? dfreer Vanilla 4 October 4, 2008 10:07


All times are GMT +1. The time now is 21:36.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.