Lines Matching refs:control_width
54 static int control_width; variable
398 left = first_control_x + col * (control_width + 1); in display_string_centered_in_control()
399 x = left + (control_width - width) / 2; in display_string_centered_in_control()
419 left = first_control_x + col * (control_width + 1); in display_control()
420 frame_left = left + (control_width - 4) / 2; in display_control()
583 display_string_centered_in_control(base_y, col, buf, control_width); in display_control()
589 i = first_control_x + col * (control_width + 1) + (control_width - control_name_width) / 2; in display_control()
718 control_width = (screen_cols - 3 - (int)controls_count) / controls_count; in compute_controls_layout()
719 if (control_width < 8) in compute_controls_layout()
720 control_width = 8; in compute_controls_layout()
721 if (control_width > max_width) in compute_controls_layout()
722 control_width = max_width; in compute_controls_layout()
723 if (control_width > screen_cols - 4) in compute_controls_layout()
724 control_width = screen_cols - 4; in compute_controls_layout()
726 visible_controls = (screen_cols - 3) / (control_width + 1); in compute_controls_layout()
730 first_control_x = 2 + (screen_cols - 3 - visible_controls * (control_width + 1)) / 2; in compute_controls_layout()
732 if (control_width < max_width) in compute_controls_layout()
733 control_name_width = control_width; in compute_controls_layout()