Searched refs:x_1 (Results 1 – 1 of 1) sorted by relevance
673 static void constrain_line (int x_0, int *x_1, int y_0, int *y_1, int width, int height) in constrain_line() argument678 if (*x_1 > width) in constrain_line()680 dx = *x_1 - x_0; in constrain_line()683 *x_1 = width; in constrain_line()687 if (*x_1 < 0) in constrain_line()689 dx = *x_1 - x_0; in constrain_line()692 *x_1 = 0; in constrain_line()698 dx = *x_1 - x_0; in constrain_line()703 *x_1 = ((height-y_0)*dx)/dy + x_0; in constrain_line()707 dx = *x_1 - x_0; in constrain_line()[all …]