manipulator: fix column width calculations for 80x25 window

develop
jj 2012-11-24 16:52:21 +01:00
parent e73274d281
commit 4dfe46e26f
1 changed files with 4 additions and 4 deletions

@ -469,10 +469,10 @@ void viewscreen_unitlaborsst::calcSize()
int col_maxwidth[DISP_COLUMN_MAX];
col_minwidth[DISP_COLUMN_HAPPINESS] = 4;
col_maxwidth[DISP_COLUMN_HAPPINESS] = 4;
col_minwidth[DISP_COLUMN_NAME] = 0;
col_maxwidth[DISP_COLUMN_NAME] = 0;
col_minwidth[DISP_COLUMN_PROFESSION] = 0;
col_maxwidth[DISP_COLUMN_PROFESSION] = 0;
col_minwidth[DISP_COLUMN_NAME] = 15;
col_maxwidth[DISP_COLUMN_NAME] = 15; // adjusted in the loop below
col_minwidth[DISP_COLUMN_PROFESSION] = 15;
col_maxwidth[DISP_COLUMN_PROFESSION] = 15; // adjusted in the loop below
col_minwidth[DISP_COLUMN_LABORS] = num_columns*3/5; // 60%
col_maxwidth[DISP_COLUMN_LABORS] = NUM_COLUMNS;