Searched refs:x_0 (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() argument680 dx = *x_1 - x_0; in constrain_line()685 *y_1 = ((width-x_0)*dy)/dx + y_0; in constrain_line()689 dx = *x_1 - x_0; in constrain_line()694 *y_1 = ((0-x_0)*dy)/dx + y_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()712 *x_1 = ((0-y_0)*dx)/dy + x_0; in constrain_line()