Lines Matching refs:y2
39 draw_line (Pixel * data, int x1, int y1, int x2, int y2, int col, int screenx, in draw_line() argument
45 if ((y1 < 0) || (y2 < 0) || (x1 < 0) || (x2 < 0) || (y1 >= screeny) in draw_line()
46 || (y2 >= screeny) || (x1 >= screenx) || (x2 >= screenx)) in draw_line()
98 dy = y2 - y1; in draw_line()
106 y1 = y2; in draw_line()
107 y2 = tmp; in draw_line()
109 dy = y2 - y1; in draw_line()
114 if (y1 < y2) { in draw_line()
116 for (y = y1; y <= y2; y++) { in draw_line()
121 p = &(data[(screenx * y2) + x1]); in draw_line()
122 for (y = y2; y <= y1; y++) { in draw_line()
151 if (y2 > y1) { in draw_line()
156 for (y = y1; y <= y2; y++) { in draw_line()
193 for (y = y1; y >= y2; y--) { in draw_line()