src/draw.c
// configures the inputs accroding to the size of the screen
configures the inputs accroding to the size of the screen
configures the inputs accroding to the size of the screen
void position_input(struct desktop* desktop, struct input* login, struct input* password)
{
	i32 len;
	u16 x;
	x = box_main_x + config.margin_box_main_h + labels_max_len + 1;
	len = box_main_x + config.box_main_w - config.margin_box_main_h - x;
	if (len < 0)
	{
		return;
	}
	desktop->x = x;
	desktop->y = box_main_y + config.margin_box_main_v + 3;
	desktop->visible_len = len;
	login->x = x;
	login->y = box_main_y + config.margin_box_main_v + 5;
	login->visible_len = len;
	password->x = x;
	password->y = box_main_y + config.margin_box_main_v + 7;
	password->visible_len = len;
}
void position_input ( struct desktop * desktop , struct input * login , struct input * password ) { i32 len ; u16 x ; x = box_main_x + config . margin_box_main_h + labels_max_len + 1 ; len = box_main_x + config . box_main_w - config . margin_box_main_h - x ; if ( len < 0 ) { return ; } desktop -> x = x ; desktop -> y = box_main_y + config . margin_box_main_v + 3 ; desktop -> visible_len = len ; login -> x = x ; login -> y = box_main_y + config . margin_box_main_v + 5 ; login -> visible_len = len ; password -> x = x ; password -> y = box_main_y + config . margin_box_main_v + 7 ; password -> visible_len = len ; }
configures the inputs accroding to the size of the screen
configures the inputs accroding to the size of the screen